Re: how sessions works internally?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lalit kumar пишет:
> hi all,
> 
> anyone know about how the session works internally?
> how the session variable save the data and reterive the data from the
> server.?
> 
> it means i wanna to know any method which move data like sessions but
> without using of sessions.

hi!
first of all, sorry for my english.
when you start session, php create file in '/tmp/'(or smth like that)
folder. php gives it random name.
when you write some variables to $SESSION array php writes it into this
file.
also it tries to send cookie with session_name() name. so php could read
all your $SESSION variables next time your script starts.
when it isn't possible to send cookie, php tries to add session_name()
variable to all your forms and relative links.
now when you now mechanism in common. try to read manual.
maybe functions like handler_open() is smth, what you need.



PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-objects/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:php-objects-digest@xxxxxxxxxxxxxxx 
    mailto:php-objects-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux