Re: session problem
| From: | Chris Lee | Date: | Tue, 27 Feb 2001 23:09:54 +0000 |
| Subject: | Re: session problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41929@lists.php.net to get a copy of this message | ||
cookies disabled and using --trans-sid ? the only way PHPSESSID can be set
is if PHPSESSID is set in the url (get) or in a form (post) if neither is
set then your hooped. a new session will be created each time.
<?php
session_start()
if (!isset($HTTP_SESSION_VARS['count']))
{
$count = 1;
session_register('count');
} else
$count++;
echo $count
echo "<a href='$PHP_SELF'>same page </a> ";
?>
load this page without cookies and it will allways display 1 untill you
start clicking on the link. this is because PHPSESSID is now set.
in a long way Im trying to say that what your experisnceing is normal
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
lee@mediawaveonline.com
""kaab kaoutar"" <kaab_k@hotmail.com> wrote in message
news:F220AzdaQYrVjYKtWfN0000483c@hotmail.com...
> Hi!
>
> I have a page in wich i register and fill the value of some session
> varibles:
> session_start();
> session_register("vehiculesess");
> session_register("hotelsess");
> session_register("riadsess");
> session_register("transfertsess");
> session_register("excursionsess");
> include "sessions.inc";
>
> bit when i go to other pages and come back to it , it creates a new
session
> ?! however i want to fill more that variables !
>
> NB: i also discovered that when i reload that page it creates another
> session however when i add and click on a submit button with action =echo
> PHP_Self it works, i mean it no more creates another session
> any idea ?
>
> Thanks
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
>
> --
> 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
>