Session and user browser

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

Session and user browser

Post by pelegk2 »

i saw that sesions that i do like this :

Code: Select all

session_start() ;
 $_SESSIONї'count']=44;
now when i i looked at the pc temp i saw that these values are written there in a session cookie!
1)dosen't the session stored only in the server memoery?or the browser RAM?
2)can i block this session from being written on my pc? if yes then how?and will it block the session from being written on my pc will it be saved on the seervers ram?
thnaks in advance
peleg
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

why would you want that? btw, if your argument is "speed", every self-respecting OS will cache a often used file in memory.
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

Post by pelegk2 »

what?
just for general knowloedge!
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Depends on how the session code is set up. Session variables are often placed on the server within a database as opposed to cookies on the users PC.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Thus it must be possible to write your own session handling using [php_man]shmop[/php_man]
Post Reply