Re: A stupid question?

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

 



On Fri, 2008-01-18 at 10:54 +0800, Shelley Shyan wrote:
> Hi all,
> 
> Maybe this is a somehow stupid question.
> 
> I want to know how php could know whether session_start() has been called, that is, whether session has been started.
> 
> I Googled, but got little help.
> 
> Thank you for help!
> Any tip is greatly appreciated.
> 
> Regards,
> Shelley
> 

Hey Shelley, maybe I can help you understand Sessions. When you start a
Sessions PHP creates a Session ID. This is then used to create/Store
information in a file or in a database. The configuration of this is in
your php.ini file. If this file you can change where the session is
saved as well as other options. A simple way to use Sessions is with
cookies with the session.use_cookie = 1 in the php.ini file. However, if
the client doesn't allow cookies there is a second way;
session.use_trans_sid = 0 there are a few problems however, it creates a
security risk.

Anyway, I hope this opens a little on how sessions works. If you wish to
learn more about sessions go to http://us2.php.net/session or
http://w3schools.com/php/php_sessions.asp

David Wonderly
WebGenero

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux