Hi,

Whether a new session is started on reload depends on the settings in
the configuration file (wt_config.xml). Modify this line:
<reload-is-new-session>true</reload-is-new-session>. We advise against
the use of cookies to track sessions (the 'tracking' configuration
right above it in the same config file).

However, you may also choose to track users across sessions by
installing your own cookies. See the reference manual for
Wt::WApplication::setCookie and Wt::WEnvironment::cookies. By setting
these cookies, you can recognize users independently from sessions. At
startup, use env->cookies to check if the user used your system
before. On successful login, use wApp->setCookie to remember the user
if he starts a new session lateron.

Wim.

2010/1/8  <yufeng...@sina.com>:
>
>
> hi :
>    I use  sessionId() to identify a usr login or logout,but when  web page
>  refresh ,session id also change.can not identify that a usr  has safe
>  logout,or he is requesting  web server.
>    in WT ,How to implement usr login problem ?
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to