Since my pages are all over the internet, I'd like to check to see if my session is going...and if it isn't, redirect to the index page... Example? Thanks
On the first page......
session_start(); $session_id=session_id(); session_register(session_id);
In the other....
session_start(); if (session_is_registered(session_id)==false) { header("Location: index.php"); }
Something like that?
Thanks...Do the globals need to be on for this to work?
If i remember well.....if you use register globals on you can use session_register......instead of $_SESSION['variable'] Read documentation on www.phpbuilder.com related on session.
How would I set something (anything) in a $_SESSION and check for it later? Thanks
<?PHP //This sets it. $_SESSION("Access_Level") = "LEVEL5"; //This reads it. if(isset($_SESSION("Access_Level"))){ //Makes sure it is set (not empty). echo $_SESSION("Access_Level"); } ?>