|
Posted by Jerry Stuckle on 12/06/06 05:01
Sanders Kaufman wrote:
> Jerry Stuckle wrote:
>
>> I'm saying that any variable ($_GET, $_POST or $_SESSION) with that
>> index can replace the variable, i.e.
>
>
> Index, index, index.... hmmmm. Just a s a curiosity, can I reference
> other sessions like so:
>
> $x = $_SESSION[$sSessionToken]["MyVar"]
No, you only have one session available.
Your example would access an array (index found in $sSessionToken) with
element 'MyVar'.
Sessions are particular to that site. Anything else would be a major
security breach. Additionally, the session info is kept on the server,
so even if you (theoretically) could access another site's session, the
data wouldn't be there.
As for accessing the info for another browser's session, you can't with
the default session handling. But you could put your own session
handler in there and do whatever you want - i.e. store the data in a
database. Then you could access data from other sessions on your
machine. But it's not recommended.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|