Re: Problem with Cake session time out and security level
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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Problem with Cake session time out and security level
Nobody no clue? On Nov 17, 12:37 pm, thomaus tho...@saimiris.com wrote: I already tried this. You are right, this removes existing session cookies manually from the browser, but then there is no time limitation for the Cookie. Still the same problem then... On Nov 17, 5:49 am, Amit Badkas amit.sanis...@gmail.com wrote: 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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.com cake-php%252bunsubscr...@googlegroups.comcake-php%25252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site
Re: Problem with Cake session time out and security level
I already tried this. You are right, this removes existing session cookies manually from the browser, but then there is no time limitation for the Cookie. Still the same problem then... On Nov 17, 5:49 am, Amit Badkas amit.sanis...@gmail.com wrote: 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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.com cake-php%252bunsubscr...@googlegroups.comcake-php%25252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor 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,
Re: Problem with Cake session time out and security level
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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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.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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Problem with Cake session time out and security level
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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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.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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Problem with Cake session time out and security level
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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 amit.sanis...@gmail.com 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 tho...@saimiris.com 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.com cake-php%252bunsubscr...@googlegroups.comcake-php%25252bunsubscr...@googlegroups.com 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Problem with Cake session time out and security level
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 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Problem with Cake session time out and security level
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 tho...@saimiris.com 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 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Cake session time-out
In my project i want to chage the session time-out value dynamicaly based on the user access I have used cake session database and one more thing this should be done in component class please help me to resolve this issue thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---