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
Contact:

Sat Feb 12, 2005 3:19 am

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

<?php
#Starting a session, should be done on every page at the top
session_strat();
?>

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest