Hi,
Have you also added following code to your custom session settings file?
ini_set('session.cookie_lifetime', 0);
Also try after removing existing session cookies manually from the browser.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Tue, Nov 16, 2010 at 7:37 PM, thomaus <[email protected]> wrote:
> Hi,
>
> The piece of code you gave me lets me setting the time-out to 90
> seconds, but it doesn't log-out after browser closing, unless I set
> the Security level to "high", which I don't want. So still the same
> problem...
>
> Thanks a lot for helping anyway!
>
> On Nov 16, 1:57 pm, Amit Badkas <[email protected]> wrote:
> > Hi,
> >
> > I think following code will do the trick alongwith custom session
> settings,
> > try
> >
> > Configure::write('Session.timeout', 0.9);
> >
> > Amit Badkas
> >
> > PHP Applications for E-Biz:http://www.sanisoft.com
> >
> > On Tue, Nov 16, 2010 at 6:04 PM, thomaus <[email protected]> wrote:
> > > Hi,
> >
> > > I know that but my problem is not this one.
> >
> > > I want to know how to have these 3 conditions fullfilled:
> >
> > > 1) Security level to "medium" (and not "high")
> >
> > > 2) A given time-out of 90 seconds
> >
> > > 3) An automatic log-out after browser closing
> >
> > > So far, I can't find a way to do it!
> >
> > > On Nov 16, 5:56 am, Amit Badkas <[email protected]> wrote:
> > > > Hi,
> >
> > > > If you want custom session settings then change configuration to
> > > something
> > > > like
> >
> > > > Configure::write('Session.save', 'my_session');
> >
> > > > and after that create app/config/my_session.php where you can define
> your
> > > > own session settings, something like
> >
> > > > ini_set('session.use_trans_sid', 0);
> > > > ini_set('session.name', Configure::read('Session.cookie'));
> > > > ini_set('session.cookie_lifetime', 0);
> > > > ini_set('session.cookie_path', $this->path);
> >
> > > > Hope this helps.
> >
> > > > Amit Badkas
> >
> > > > PHP Applications for E-Biz:http://www.sanisoft.com
> >
> > > > On Tue, Nov 16, 2010 at 12:41 AM, thomaus <[email protected]>
> wrote:
> > > > > Hi,
> >
> > > > > My question is simple. Is it possible to have these 3 things set-up
> > > > > for my project:
> >
> > > > > 1) Security level to "medium" (and not "high")
> >
> > > > > 2) A given time-out of 90 seconds
> >
> > > > > 3) An automatic log-out after browser closing
> >
> > > > > ???
> >
> > > > > From what I understood, if I want 3, then I need to set the
> Security
> > > > > level to "high", which I don't want.
> >
> > > > > Now, I can set manually 3 by writing
> > > > > "ini_set('session.cookie_lifetime', 0);" in a session config file,
> but
> > > > > then how can I set a number of seconds for the session time-out???
> >
> > > > > So it seems like my request is impossible. Is it? That would be
> > > > > completely incredible!
> >
> > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > > others
> > > > > with their CakePHP related questions.
> >
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "CakePHP" group.
> > > > > To post to this group, send email to [email protected]
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<cake-php%[email protected]>
> <cake-php%[email protected]<cake-php%[email protected]>
> >
> > > <cake-php%[email protected]<cake-php%[email protected]>
> <cake-php%[email protected]<cake-php%[email protected]>
> >>For
> > > more options, visit this group at
> > > > >http://groups.google.com/group/cake-php?hl=en
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others
> > > with their CakePHP related questions.
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "CakePHP" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<cake-php%[email protected]>
> <cake-php%[email protected]<cake-php%[email protected]>>For
> more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en