os232 Posted June 4, 2008 Posted June 4, 2008 I want to add some infos into a new session var. I assumed if I use the following code if (!tep_session_is_registered('my_new_session')) { tep_session_register('my_new_session'); $my_new_session = 'hallo'; } a new session var 'my_new_session' will be registered with the string 'hallo' so that I can use and access the value during the user browsing my osCommerce shop. Unfortunately it does not seem to work. If I print_r($GLOBALS) I can see that an session var 'my_new_session' exist, but there is no value saved. What is wrong with the code above? Thanks for any helpl.
germ Posted June 5, 2008 Posted June 5, 2008 This post may give you another "angle of attack": Click Me If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
os232 Posted June 5, 2008 Author Posted June 5, 2008 Thanks for the hint. However osc use the approach of tep_session_register so I think it is not a good idea to mix it with direct access to $_SESSION. It obviously work in all other cases so I think my code is wrong or/and I miss something.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.