jeudi 13 août 2015

How to make my index page load images without reloading page, every time user logs out, whose locations are stored in database?

My index page, that is login and signup page has 3 images, whose locations are stored in database, loads those images automatically if the page is refreshed. For example, when I open the index page as a user for login, the images are loaded and shown without any problem. But when I logout, the images disappear, which actually should have been there. Further if I refresh the page, they are shown again.

So the only problem that I can see is related with REFRESH/RELOAD. I have used session functions for logging out. When a user logs out, the session is destroyed and index page appears, because I used the header(""); function, which contains the address of index page. So when user clicks log out, it opens the index page, without refreshing it (I assume so). So images are not shown. They need a page relaod/refresh for appearing.

How to solve this problem?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire