This is a discussion on "Session Problems :(" within the PHP Forum section. This forum, and the thread "Session Problems :( are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Session Problems :(
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Session Problems :(
I'm just getting to grips with PHP, and trying to figure out a way of making sure people are logged in, like using the session variables in ASP. But when I put session_start(); at the top of my home page, i get loads of warnings:
|
|
|
|
||||
|
My guess is that this is very much related to this:-
http://www.webforumz.com/viewtopic.php?p=22236#22236 In other words.... they are warnings... not errors and you can turn them off somehow.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
thanks rob - have turned them off, but $_SESSION variables are not constant from page to page - they lose their value when you click a link - do you know why?
|
|
|||
|
Are you sure you're using PHP 4.1 or later? $_SESSION cannot be used prior to PHP 4.1.
Also, do you have register_globals turned on in your php.ini? If so then you'll need to register your variables using session_register('myvar'); |
|
||||
|
im using php 4.3.3, and i have tried it both registering variables with session_register and both with register_globals turned on in php.ini
|
|
|||
|
To anything you choose... Eg: C:\temp
Just create that folder and change the path. |
![]() |
| Tags |
| session, problems |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Problems with Session Variables... | JustinStudios | PHP Forum | 5 | Jan 17th, 2008 05:05 |
| are session safe? | alexgeek | PHP Forum | 8 | Aug 30th, 2007 10:45 |
| Session variables | ideleon | PHP Forum | 2 | Feb 7th, 2006 08:04 |
| session problem | fender79 | Classic ASP | 8 | May 18th, 2005 02:26 |
| session php | iamzoli | PHP Forum | 2 | Apr 7th, 2004 05:49 |