Search found 17 matches

by audiodef
Mon Dec 11, 2006 7:24 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

I hope you're right, but I'm just not seeing it. I think I posted the session section of my php.ini earlier in this topic, so the first one to point out the magical boo-boo gets 1 million magical hacker points. In the meantime, I've given it the old Bronx cheer and am setting up VMWare with a Linux ...
by audiodef
Mon Dec 11, 2006 11:43 am
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

That one one of the first things I did a few days ago, so I've ruled that out. save_path is currently set and appears to be working correctly. Session files are being created in the save_path dir.
by audiodef
Mon Dec 11, 2006 9:47 am
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

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] I wonder ...
by audiodef
Mon Dec 11, 2006 9:36 am
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

This is getting weird. I got a Notice: Undefined index: TestCookie error. I have cookies from many other sites and use sites that require cookies all the time. So it's not a problem with my browser settings. Apache is allowed by my firewall to do anything - greenlighted across the board (PHP is an a...
by audiodef
Mon Dec 11, 2006 9:08 am
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

I setcookie'd one page, name and value only, so it would persist as long as the browser is open, then print_r($_COOKIE) on the next page. I got Array(), meaning it's not persisting. What would I need to do to make that work?
by audiodef
Mon Dec 11, 2006 7:54 am
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

Yep. Tried it with different browsers too. Nothing I do with browsers, firewall settings and php.ini allows PHP to use sessions without passing the SID. I'm hoping it isn't in fact a bug, but it just seems more and more like there is a particular condition under which this server software version co...
by audiodef
Sun Dec 10, 2006 6:38 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

Reported as possible bug

Submitted a bug report to bugs.php.net. If anyone sees something obviously wrong with my setup, please let me know and I'll cancel the bug report. Otherwise you can check it out at http://bugs.php.net/bug.php?id=39790.
by audiodef
Sun Dec 10, 2006 3:36 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

It was going through my php.ini and not finding what was wrong that led me here. Here's the session section from my php.ini. Anyone who points out what it takes to get my sessions to work without having to pass the SID in the URL gets my undying thanks. [Session] ; Handler used to store/retrieve dat...
by audiodef
Sun Dec 10, 2006 2:34 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

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] Yep. Well...
by audiodef
Sun Dec 10, 2006 12:47 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

With full php tags, this is what I get on test2.php:

Notice: Undefined index: user_id in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\dev\studio5\admin\test2.php on line 3
by audiodef
Sun Dec 10, 2006 12:37 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

Results: PHP Version: 5.2.0 PHP OS: WINNT Error Reporting: 6143 (E_ALL) Register Globals: Off Short Tags: Off Display Errors: On Magic Quotes GPC: Off Magic Quotes Runtime: Off Magic Quotes Sybase: Off Loaded Extensions: bcmath calendar com_dotnet ctype session filter ftp hash iconv json odbc pcre R...
by audiodef
Sun Dec 10, 2006 12:31 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

Yep. I can't even get this dirt-simple test to work: test.php: <? session_start(); $_SESSION["user_id"]=23; ?> <a href="test2.php">go</a> test2.php: <? session_start(); echo $_SESSION["user_id"]; ?> The last time I installed PHP, I selected install as Apache 2.2 module ...
by audiodef
Sun Dec 10, 2006 12:19 pm
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

D'oh! Here's the real header output. First from the test page where I set the session var, the second from the linked page that attempts to call that session var. Seems like cookies are just not part of the picture here. http://localhost/dev/studio5/admin/test.php GET /dev/studio5/admin/test.php HTT...
by audiodef
Sun Dec 10, 2006 11:46 am
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

[deleted due to brain death]
by audiodef
Sun Dec 10, 2006 11:20 am
Forum: PHP - Code
Topic: PHP 5.2 Sessions
Replies: 31
Views: 4081

Thanks. What I got was Array(), which, since print_r prints the array struct, means it's empty. I changed php.ini to use, not use, scramble, bake, and deep-fry cookies, all with the same result. Firefox (I have 2) is set to use cookies and my firewall allows all cookies. Are you using Apache 2.2.3 o...