Jump to content

encrypt the url


Matar
 Share

Recommended Posts

hi how can i encrypt the url content , this content is a query criteria ? and how i can prevent the user to back to the userhome page when he click back in the browser i use the session and i make a logout page , but when the user click back and then forward he back to his account i need to prevent this . many thanks to all matar

Link to comment
Share on other sites

Well, that Logout part doesn't make much sense for me. If you make a good logout page, all sessions should be destroyed, and there's no way the user can take back his account unless he logs in again.Here's the basic logout:

<?phpsession_start();session_destroy();echo "<meta http-equiv='refresh' content='2;url=index.php'>"; //Go back to the index page?>

At least that one works fine for me

Link to comment
Share on other sites

By the way, If someone is reading your page in a different language and they want to translate it, then it will be impossible for them to translate the page except the homepage. Best go with default URLS instead of encrypting the URL.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...