Re: PHP Sessions - Cookies Not Saving
| From: | daniel at electroteque dot org | Date: | Fri, 05 Mar 2004 03:25:53 +0000 |
| Subject: | Re: PHP Sessions - Cookies Not Saving | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179520@lists.php.net to get a copy of this message | ||
Are the hosts u looking at the same ? Like is it the very same link ? Check
on the XP box if you have cookies disabled, u can always check if the
session is being stored on the server too, look in /tmp first. Try a print_r
($_COOKIE); aswell.
> Hi everyone,
>
> I'm trying to create a session with PHP. I'm using the following code:
>
> <?php
> session_start( );
>
> print( session_id( ) );
>
> print( '<HTML>');
> print( '<BODY>' );
> print( ' <a href =
>
> "http://www.mysite.com/shopping_cart/Test2.php">Here</a>'
> );
> print( '</BODY>' );
> print( '</HTML>' );
> ?>
>
> Now, I'm trying to view this site on a WinXP box. However, the cookies
> are not being saved onto my machine. I've viewed the site with
> Mozilla on a Linux box, and it works fine. What could be wrong? Any
> help would be greatly appreciated.
>
> I read somewhere that PHP had some issues with writing cookies to an
> NTFS box. Could that have anything to do with it?
>
> Thanks,
>
> Paul
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar get it now!
> http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php