how to use sessions...

Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!

Moderators: egami, macek, gesf

Post Reply
User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Sat Feb 12, 2005 3:19 am

hmmz..this not really a PHP Security question thou.. but anyways:

#Starting a session, should be done on every page at the top

then simply check the $_SESSION['var_name_here'] for a value that will indicate the last accessed page, then assigne the new value to $_SESSION['var_name_here'] and redirect to a new page.. do the same thing for the rest of the pages :)
Best Regards,
Alexej Kubarev
Zend Certified Engineer
Image Image

Post Reply