Actual value of a session UID?
Posted: Wed Jul 21, 2010 8:47 am
I suspect this must be obvious, but Googling "UID" and "PHP" isn't very easy...
I have a PHP script which calls an executable which needs a whole bunch of values saved from call to call. This would logically be a session, however, it's going to be a major job to extract all the values from the exe to use the session functions in the PHP. So I thought what I'd do is set up a session in the PHP, pass its UID to the executable, and use it as a filename to read and write the (several hundred, maybe more) required values inside the executable. That way, if and when we move to a more modern setup, I can add to the PHP session rather than having to rewrite the entire logic.
So, having called session_start(), is there a variable just sitting somewhere which contains the value of the UID which that session has been allocated? Or did I miss something and it's up to me to compute the UID? I got the impression that it's generated automatically.
Apologies for newbie question if this is obvious.
I have a PHP script which calls an executable which needs a whole bunch of values saved from call to call. This would logically be a session, however, it's going to be a major job to extract all the values from the exe to use the session functions in the PHP. So I thought what I'd do is set up a session in the PHP, pass its UID to the executable, and use it as a filename to read and write the (several hundred, maybe more) required values inside the executable. That way, if and when we move to a more modern setup, I can add to the PHP session rather than having to rewrite the entire logic.
So, having called session_start(), is there a variable just sitting somewhere which contains the value of the UID which that session has been allocated? Or did I miss something and it's up to me to compute the UID? I got the impression that it's generated automatically.
Apologies for newbie question if this is obvious.