Re: Auth problem: Page refresh or multiple page loads lead to logout

2009-04-03 Thread Dr. Loboto
It looks like problem with concurrent access to session files. Standard advice in all such cases - try to set lower security level. Actually, I don't know how can it help, but it is really common advice. Other advice - choose session storage engine that works better with concurrent requests. On

Re: Auth problem: Page refresh or multiple page loads lead to logout

2009-04-03 Thread logout
Yeah, I am interested in that matter too. I have a lot of ajax requests and when I click some buttons multiple times while the request is beeing processed, I get kicked out - i.e. the session is destroyed and I end with the login form. So, what session storage engine could be used? This is

Re: Auth problem: Page refresh or multiple page loads lead to logout

2009-04-03 Thread Andreas Müller
Wow, setting the Variable Security.level to medium definetly did the trick!! Great! Thank you, Dr. Loboto. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Auth problem: Page refresh or multiple page loads lead to logout

2009-04-02 Thread Andreas Müller
Hello, I have some issues with two CakePHP (current stable version) applications regarding Auth. When a user is logged in and loads multiple pages simultaneously, he gets logged out. This happens for example when he follows a hyperlink while the page is still loading or if he hits F5 twice.

Re: page refresh?

2008-09-30 Thread rocket
interesting fix. thanks On Sep 29, 5:15 pm, 3lancer.eu [EMAIL PROTECTED] wrote: Hi, but when you change the picture, the old picture is still stuck in the cache, so to see the new pic the user needs to push F5... I can't figure out how to refresh the page automatically. any ideas?

Re: page refresh?

2008-09-30 Thread rocket
just implmemented it works. lol cool :) i ended up doing a md5 on time() :) On Sep 30, 11:30 am, rocket [EMAIL PROTECTED] wrote: interesting fix. thanks On Sep 29, 5:15 pm, 3lancer.eu [EMAIL PROTECTED] wrote: Hi, but when you change the picture, the old picture is still stuck in the

page refresh?

2008-09-29 Thread rocket
sup guys i have an upload script, that lets you upload your profile pic. but when you change the picture, the old picture is still stuck in the cache, so to see the new pic the user needs to push F5... I can't figure out how to refresh the page automatically. any ideas?

Re: page refresh?

2008-09-29 Thread forrestgump
use javascript http://grizzlyweb.com/webmaster/javascripts/refresh.asp On Sep 29, 12:37 pm, rocket [EMAIL PROTECTED] wrote: sup guys i have an upload script, that lets you upload your profile pic. but when you change the picture, the old picture is still stuck in the cache, so to see

Re: page refresh?

2008-09-29 Thread [EMAIL PROTECTED]
Yahoo (guidelines on caching and optimisations) suggests that you never replace a picture under the same name. So when updating your design, for example, you would link your logo to logo-1.1.gif or something similar. They particularly suggest this versioning type of setup for logos and other

Re: page refresh?

2008-09-29 Thread 3lancer.eu
Hi, but when you change the picture, the old picture is still stuck in the cache, so to see the new pic the user needs to push F5... I can't figure out how to refresh the page automatically. any ideas? Simplest way is to add some random query string at the end of the url, like

Preventing Duplicate Record Insertion on Page Refresh

2007-12-11 Thread chowdary
I am developing a PHP-mysql database. It is noted that when the browser window is refreshed the data is inserted again in the database. unfortunately there is no unique keys that I can use to verify the existance of the data, so as to prevent the multiple insertion.

Re: Preventing Duplicate Record Insertion on Page Refresh

2007-12-11 Thread dr. Hannibal Lecter
You should set some validation rules for your Model, and setup a custom rule to check whether the submitted data is already in the database, OR implement Model::beforeSave() Hope that helps, dr. H. --~--~-~--~~~---~--~~ You received this message because you are

Re: Preventing Duplicate Record Insertion on Page Refresh

2007-12-11 Thread chowdary
i am validating the data b4 inserting. but the data type is text.. the text will not be unique... explain me clearly... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Preventing Duplicate Record Insertion on Page Refresh

2007-12-11 Thread Christophe Cholot
You should use the redirect after post pattern, using a HTTP 302 or 303 status code after saving your fields. if($this-Model-save()) $this-redirect($url, $code, $exit); On Dec 11, 12:58 pm, chowdary [EMAIL PROTECTED] wrote: i am validating the data b4 inserting. but the data type is

Re: Preventing Duplicate Record Insertion on Page Refresh

2007-12-11 Thread dr. Hannibal Lecter
Well, it's hard to provide an answer like this.. Can you paste some code and explain to us what are trying to achieve? If you're inserting text and there is something else that needs to be unique, you will need a custom validation rule for your Model. On Dec 11, 12:58 pm, chowdary [EMAIL