Jump to content

Question about cookies and a question about URL's... PLEASE HELP!


Patriot

Recommended Posts

Thanks for looking.  I have the following questions.

 

QUESTION 1: I usually just use session variables, but I have decided to use cookies this time.

Should I encrypt the password and username of the user before I store it as a cookie?

What is the best way to destroy a cookie?

QUESTION 2:

How can I make the URL have a default variable such as "testsite.com/jon" where it will connect to the database and pull up information about a person named jon as opposed to making the url "testsite.com/?username=jon"?

 

Thanks!

Gil

 

PW should always be hashed or encrypted.  Hashing the username wouldn't be a bad idea either and don't use normal username or password as the cookie name.

 

You just set it with a time in the past and it will expire and destroy.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.