Search found 8 matches

by fakhrizaki
Fri Oct 05, 2007 10:43 pm
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

Thanks,

But as far as the code is concerned everything is fine. session_start() is also there and the permissions to the session save path is also OK. Then what could be the reason. I am amazed because sessions were working fine previously and suddenly it stopped working :(

What do you reckon?
by fakhrizaki
Fri Oct 05, 2007 7:44 am
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Following...
by fakhrizaki
Thu Oct 04, 2007 10:25 pm
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

Following error is returned by Page2 when error_reporting is turned on.

Notice: Undefined variable: _SESSION in /home/dragonf/public_html/dragonfeed/page2.php on line 4

Page2 :

Session Value:
Notice: Undefined variable: _SESSION in /home/dragonf/public_html/dragonfeed/page2.php on line 15
by fakhrizaki
Thu Oct 04, 2007 1:17 am
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

In both machines it has 755 permissions. It's still not working if I change it to 777.

I am amazed that if there is something wrong with the sessions, it should not work on the page1 also where the variable is initialized by a value.
by fakhrizaki
Wed Oct 03, 2007 1:20 am
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

Paths for saving sessions are /tmp on both servers.

Please look at phpinfo for both servers.

Server 1 (where session ARE working fine) http://www.rivoligroup.com/phpinfo.php

Server 2 (where session are NOT working fine) http://www.dragonfeed.com/phpinfo.php
by fakhrizaki
Tue Oct 02, 2007 2:03 pm
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

But both the directories on both the servers have write permissions. I have already checked it. Still the problem is there :(
by fakhrizaki
Tue Oct 02, 2007 1:30 pm
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

Result of the script on the server in which sessions are working fine PHP Version: 5.2.2 PHP OS: Linux Error Reporting: 0 () Register Globals: Off Short Tags: On Display Errors: On Magic Quotes GPC: On Magic Quotes Runtime: Off Magic Quotes Sybase: Off Config file: /usr/local/lib/php.ini Loaded Exte...
by fakhrizaki
Tue Oct 02, 2007 6:34 am
Forum: PHP - Code
Topic: Sessions are lost on page redirect
Replies: 19
Views: 1976

Sessions are lost on page redirect

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi, I hav...