Hey Guys,
I have login page in my web site. I have used SESSION to store the username and the user password.
What i want is that after succesfully logging in he should not be able to go back to the previous page.
What's happening rite nw is that when the user tries to go back he is told that the web page has expired but when he clicks on the retry button the page comes back. Please suggest some ideas.
I hope i have made myself clear and not complicated the things.

How I avoid this is by submitting the form to the same page. After the login is successful I use the header() function to redirect the members area. If they press back there won't be any post data to give that "Web page has expired" crap.

Also, put some logic on the login page to redirect to the members area if a user is logged in already. that way the login page won't show again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.