PDA

View Full Version : browser refresh



bpc35c
19 Jan 2011, 12:16 PM
Upon refresh, I am going back to the home page, which in this case is the login window of my app. How do I stay on the current page after refresh. Thanks.

ryanyoungsma
19 Jan 2011, 12:29 PM
Sounds to me you are not handling the login correctly. Such as setting a variable in a PHP session stating the user is logged in. but one could only guess based on the info provided. There is a great forum thread on login windows in the forums. I would search for it.

bpc35c
19 Jan 2011, 12:53 PM
Hi, Thanks for responding. This may have something to do with State management and refreshing. I mentioned login window because that's the home page. My url does not change in the browser as I navigate thru the app.

mitchellsimoens
19 Jan 2011, 2:20 PM
Of course the URL doesn't change in an app. You should have backend session or use of cookies. Would much rather use session. Past that, you can set the hash in the URL and when loading get that hash and do something

mazhar.shaikh
30 Jan 2014, 1:34 PM
Could you point to some links, fiddles where I could see an example of what you are saying.

Thanks