[Cgi-session-user] Re: :Session - query
Brought to you by:
sherzodr
From: Senthil N. <rs...@gm...> - 2005-10-06 07:33:42
|
Hi Sherzod Ruzmetov, Yeah its really working for the queries I posted. But I need to resolve only this, 2. How do I implement one session per user in the same machine (from same IP address). Is there anyother modules to do that? Thanks Senthil Nathan R On 10/6/05, Senthil Nathan <rs...@gm...> wrote: > > Hi Sherzod Ruzmetov, > > Yeah that's gr8. It's working now. Same SessionID is maintained even afte= r > use of several windows. > > But few more problems with that, > 1. The session is lost once I close all the windows to that SessionID. > How this can be avoided? ie., cookie gets deleted after closing all the > windows related to that sessionID. > 2. And how do I implement one session per user in the same machine > (from same IP address). Is there anyother modules to do that? > 3. Also looks like sessions are not getting expired. I could notice the > sessions are stored in the server even after setting it to 5minutes. > > FYI, im using session ver 3.95. I know ver 4.02 is there for download. I > need to try it. > > Thanks > Senthil Nathan R > > On 10/5/05, Sherzod Ruzmetov <she...@ha...> wrote: > > > > Use cookies with expiration date. Example: > > $session =3D CGI::Session->new(); > > $cgi =3D CGI->new(); > > $cookie =3D $cgi->cookie(-name=3D>$session->name, -value=3D>$session-= >id, > > -expires=3D>"+1d"); > > print $cgi->header(-cookie=3D>$cookie); > > > > -----Original Message----- > > *From:* Senthil Nathan [mailto:rs...@gm...] > > *Sent:* Wednesday, October 05, 2005 5:29 AM > > *To:* she...@cp... > > *Subject:* CGI::Session - query > > *Importance:* High > > > > Hi Sherzod Ruzmetov, > > > > I need some more examples of using CGI::Session. I read your cookbook. > > Could you send me more examples of using CGI::Session module. > > > > The query is, > > How to assign only one session id for a particular user and track his > > info.? > > I face problems in tracking a session in different windows. I could use > > one session for one window. But if the user opens in another window, a = new > > session is being created. How to restrict this. > > > > Thanks > > Senthil Nathan R > > > > > > > |