当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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.