Re: PHP Sessions - Cookies Not Saving
| From: | daniel at electroteque dot org | Date: | Fri, 05 Mar 2004 05:17:26 +0000 |
| Subject: | Re: PHP Sessions - Cookies Not Saving | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179535@lists.php.net to get a copy of this message | ||
Ahh is it showing in the url ? Usually it stores as a cookie, or via url, i
think that is also set in php.ini, someone want to ellaborate here ?
> If there is something in $_COOKIE, what does that mean? That there is
> a cookie somewhere? Or is it appending the Session ID to the URL?
>
> Paul
>
>
>>From: <daniel@electroteque.org>
>>To: <php-general@lists.php.net>
>>Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
>>Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST)
>>
>>Is it a non default /tmp ? If so it should be in php.ini or u have to
>>set where it is with an ini_set , hope that helps.
>>
>> > AAAAAAAAAAAAAAARRRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHHH!!!!!!!!!!!!!!
>> >
>> > I asked my hosting company where they were stored...on the
>> > server...I am so mad at myself...all that time wasted. Thanks for
>> > the help though...it was much appreciated!
>> >
>> > Paul
>> >
>> >
>> >>From: <daniel@electroteque.org>
>> >>To: <php-general@lists.php.net>
>> >>Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
>> >>Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)
>> >>
>> >>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
>> >>
>> >>--
>> >>PHP General Mailing List (http://www.php.net/)
>> >>To unsubscribe, visit: http://www.php.net/unsub.php
>> >>
>> >
>> > _________________________________________________________________
>> > 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
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> _________________________________________________________________
> Get a FREE online computer virus scan from McAfee when you click here.
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php