Re: session - help
| From: | Dash McElroy | Date: | Fri, 18 Apr 2003 00:27:56 +0000 |
| Subject: | Re: session - help | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19473@lists.php.net to get a copy of this message | ||
If you do not desire to do a session_start() at the top of each page, you can set session_auto.start (or similarly named directive) in the PHP.INI file. Just remember if you move your code to another server that you'll have to set the same directive again or your code will not work.
-Dash
Saravana Kumar.S.P. wrote:
Hi, Am just a beginner to PHP, jumping from ASP. I tried re-coding from my small ASP site. And the things worked fine until I met the login page. I store the user data in sessions and access then. The logging name, mail-id, userID are stored in session vars. I used this <?php $_SESSION ["MemberName"] = "Whatever"; $_SESSION ["MemberId"] = "Whatever"; $_SESSION ["MemberMail"] = "Whatever"; ?> to store the data on successful login attempt. The page redirects to home page after that. When I try to access the session var there... it gives a notice saying... the session variable is not defined?? How can I avoid that. I didnt do with session_start () or things like that... as we dont do that for in ASP. Thanks, SPS _________________________________________________________________ Gizmo freak? See what's the hottest. http://www.msn.co.in/Computing/Gizmos/ Read product reviews.