Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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,

Todas as respostas (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.