Search found 4 matches
- Tue Mar 10, 2009 11:16 am
- Forum: PHP - Code
- Topic: PHP session variables not working correctly
- Replies: 6
- Views: 381
Re: PHP session variables not working correctly
Thanks everyone for looking at this problem for me, I just tried the same code out on my friends hosting and it worked with no problems, only difference is that his hosting is using PHP 5 where mine is using PHP 4....
- Tue Mar 10, 2009 10:45 am
- Forum: PHP - Code
- Topic: PHP session variables not working correctly
- Replies: 6
- Views: 381
Re: PHP session variables not working correctly
Hi, Your english was great thanks, unfortunately this has still not resolved the issue. If on file 2 I put in: <? session_start(); echo $_SESSION['uname'] ?> instead of the redirect 'if' statement I just get a blank page instead of it saying my username. My code for file 2 now looks like this: <...
- Tue Mar 10, 2009 10:39 am
- Forum: PHP - Code
- Topic: PHP session variables not working correctly
- Replies: 6
- Views: 381
Re: PHP session variables not working correctly
Hi thanks for the reply, I still get the same problem unfortunately, I am wondering if there is something on the server maybe which is preventing the sessions from working. According to my provider I am using PHP 4.4.7 if this helps. I have made the changes to the code and it now looks like this: Fi...
- Tue Mar 10, 2009 6:52 am
- Forum: PHP - Code
- Topic: PHP session variables not working correctly
- Replies: 6
- Views: 381
PHP session variables not working correctly
I have 2 pages one which checks the sql database for existence of a username and password and then creates a session variable and then one page which checks for the existence of this variable before proceeding. I am new to PHP so I would appreciate your patience but have been using asp/asp.net for a...