Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

It's suposed work like that?


mike2001

Recommended Posts

Posted

Hi

 

I m trying to register a session in osc ms 2 but impossible!!!

 

Do security features that has been added to osc ms 2 allow registering other sessions???!! :?:

 

here is the code that i use , i try it outside osc MS 2, it works fine even in osc MS 1 :

 

to register the session :

 

<?php

 

if (!tep_session_is_registered('idnum')) tep_session_register('idnum');

$idnum = $row_location['NPA'];

 

?>

 

to print the value of session i use this code :

 

<?php echo $idnum; ?> or

<?php echo $HTTP_SESSION_VARS['idnum']; ?>

 

Nb : I save sessions in database because i m using a shared server

 

what's wrong with my code? why doeas it work with MS osc 1 and not with OSC MS 2?

 

I really appreciate some help

 

thanxs in advance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...