Re: simple questions about sessions

From: Date: Fri, 22 Jun 2001 17:54:59 +0000
Subject: Re: simple questions about sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54915@lists.php.net to get a copy of this message
greetings. Your no [1] question describes exactly the problem I have...and I thought session_is_registered() would do the job...(but I was wrong) ... Now my solution looks like this: session_register("session_uID"); if (isset($session_uID)) { do something; } else { session_destroy(); // destroy the "accidentely" generated session, which means I have no session } not very nice - I know....but the only way I found to solve the prob.... [2] if u have "enable-transit-id" enabled, PHP will add the &PHPSESSID=blah to all your HREFs and forms (I think a hidden field is automatically added) - u don't need to do anything in addition). if u want to redirect via header command u have to do it like this: header ("Location: aDocument.php?".SID); [3] that NEVER happened to me - so I have absolutely no idea.... greetz, andi "kaab kaoutar" <kaab_k@hotmail.com> schrieb in im Newsbeitrag: F77FRaqbC8wSA1XvpFV0001a2fd@hotmail.com... > > Hi! > > 1- is there a way with which i can verify that a session variable is > registered or exists without using start_session cause if it's not > registered and there is no session it'll create the session ! > i tried isset() but if it's set i have to use start_session so as to get the > values and as we know start_session should be at the beginning! > > 2- if i create a session in a page can it be used in all the site pages and > rames without adding any $phpsessid to all urls? > in my php.ini the enable-transit-id is enabled ! > byt the way what do u mean by compilin php? i just save the php.ini! > > 3-with IE and netscape as i add the phpsessid to urls , sometimes it > remmbers an old session and displays it to me ! how can i avoid these? > please help i'm confused! > > _________________________________________________________________________ > 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 >

« previous php.general (#54915) next »