搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

how to set the cookies in my website

more options

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,

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)

more options

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.

more options

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

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.

more options

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

more options

You probably can find a better forum for python-django questions.