Re: Sessions and linking
| From: | Michael Hall | Date: | Fri, 20 Jul 2001 14:06:23 +0000 |
| Subject: | Re: Sessions and linking | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58830@lists.php.net to get a copy of this message | ||
Try using theinbox.php?<?=SID?>
Adding <?=SID?> to all your URLs will maintain session data if cookies are
turned off. The session ID (a random 32 character
string) is available in $PHPSESSID, so if you really wanted to you could do:
theinbox.php?PHPSESSID=$PHPSESSID
but <?=SID?> is easier.
Mick
On Fri, 20 Jul 2001, Jome wrote:
> I'm programming an easy webmail and I've tried to use sessions. It works perfectly
> with cookies activated in the browser but I want it to be able for people which doesn't like
> cookies.
>
> If I've understood this correctly I should be able to fetch the sessiondata if I link
> something like theinbox.php?PHPSESSID=thesessionid - it won't work tho. I use session_start()
> in theinbox.php
>
> Anyone who has any idea about what I'm doing wrong? Should I define the session id for
> session_start or something?
>
> Best regards,
>
> Jome
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Michael Hall
mulga.com.au
admin@mulga.com.au
ph/fax (+61 8) 8953 1442
ABN 94 885 174 814