how to set the cookies in my website
i have website , user enter the username and password if they selected Remember me and logged in if they logout i have to appear the user name and password remain in the fields how to add these cookies in my website and if they close the browser and open the browse also user name and password should be remain... can any one help...
Thanks,
การตอบกลับทั้งหมด (4)
This is not the best forum for this question...
What language are you using for your web pages? For example, PHP, ASP.Net, Ruby, Python... There will be different recommendations for each server technology.
Also, please do NOT store the username and password in a cookie, especially if you are not using SSL (HTTPS), because the cookies are sent to the server with every single page request and that's a whole lot of traffic to sniff.
Websites remembering you and automatically log you in is stored in a cookie.
- Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
- Tools > Options > Privacy > Cookies: Exceptions
In case you are using "Clear history when Firefox closes":
- do not clear Cookies
- do not clear Site Preferences
- Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
- https://support.mozilla.org/kb/Clear+Recent+History
Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.
thanks for u r replays...am using python-django but my requirements is like this only... now i decide to save user name only for saving the user name am using jquery cookies but its not working, can any one give code for this
thanks
You probably can find a better forum for python-django questions.