Re: Session_Start() Hangs after setting Session_Id




"Syl" <david.hunter@xxxxxxxxx> wrote in message
news:1151631588.219436.322850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

CjB wrote:
Hello, I am trying to do the following in one of my pages.
session_id($_GET['SESSIONID']);
session_start();

I am running php5, however as soon as I call session_start the script
hangs and nothing happens. Is anyone else experiencing this problem, or
am I doing something incorrectly?

Thanks!

session_start(); must always be listed at the top of every page.
like this :

<?php
session_start();


That is not necessarily true. It does NOT have to be the very first
statement in the script, but BEFORE you want to start using the $_SESSION
array.

You need to check that you have a value in $_GET['SESSIONID'] before you use
it. Try this:

if (isset($_GET['SESSIONID'])) {
session_id($_GET['SESSIONID']);
} // if
session_start();

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org


.



Relevant Pages

  • Re: Session_Start() Hangs after setting Session_Id
    ... I am running php5, however as soon as I call session_start the script ... hangs and nothing happens. ... Is anyone else experiencing this problem, ...
    (comp.lang.php)
  • Re: Palm Desktop & Entourage->Address Book/iCal/Mail.app
    ... experiencing is directly attributable to this mismatch in fields. ... Though it did take longer than I expected for the To Dos to appear in iCal, ... I think that the real sluggishness I experienced may very well have been the ... and the script was struggling with what to do with the ...
    (comp.sys.mac.apps)
  • Re: Problem when executing program from script?
    ... kiwimaracuja wrote: ... > i am experiencing a weird problem: ... > but when i write a small script file which basically only includes the ... you may need to investigate external tools to help debug this - ...
    (comp.unix.shell)
  • Session_Start() Hangs after setting Session_Id
    ... I am running php5, however as soon as I call session_start the script ... hangs and nothing happens. ... Is anyone else experiencing this problem, ...
    (comp.lang.php)
  • Problem when executing program from script?
    ... i am experiencing a weird problem: ... but when i write a small script file which basically only includes the ... in the code and the pointer always stays NULL when executing from the ... thanx for reading, kiwimaracuja ...
    (comp.unix.shell)