Re: Passing variables between pages
| From: | Wolf | Date: | Fri, 19 Sep 2008 15:20:13 +0000 |
| Subject: | Re: Passing variables between pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-280511@lists.php.net to get a copy of this message | ||
<!-- SNIP -->
> Main page, login, $_SESSION gets set.
<!-- SNIP -->
What Dan says, Sessions is the way to go with anything where you have logins and need to do more
stuff with the person. Easy to set up, easy to handle...
Of course, if you want to do it without sessions, you could get the session ID when they login to
the server, store it in a DB table that they are logged in, then if the session ID goes away, then
you log them out and push them to the login page.
But why go around your elbow to blow your nose?
Wolf