RE: [PHP] Modify someone else's session register
| From: | Dave Brotherstone | Date: | Fri, 28 Dec 2001 08:53:56 +0000 |
| Subject: | RE: [PHP] Modify someone else's session register | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78919@lists.php.net to get a copy of this message | ||
Not really, but you could...
You would somehow have to get the session id from user 2 to user 3 (this
would depend how your site worked). Then you could access the session
variables - it depends how your sessions are stored. If they were stored in
a database, then you could read them (by default they're in /tmp, in a
fairly easy to follow format). I probably wouldn't recommend changing the
variables in there (/tmp) though - but you could if they were held in a
database. I believe you can change the "session handler" in order to do
this, but I've never done it.
Dave.
> -----Original Message-----
> From: Alex Vargas [mailto:avargas@estudioav.com]
> Sent: 28 December 2001 02:23
> To: php-general@lists.php.net
> Subject: [PHP] Modify someone else's session register
>
>
> Hi.
>
> Let's suppose I have 3 users in my site, each of them generating their
> respective session variables. Assuming I have a session variable named
> $variable, I'll end up in the server with 3 values: $variable_1,
> $variable_2
> and $variable_3.
>
> My question is: is there a way I can change let's say the variable of the
> second user when the third user is running the php script? Can I
> access (and
> change) the session registers generated by the users?
>
> Thanks for your help,
>
> Alex.
>
>
> --
> 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
>
>