Jump to content
Fórum Script Brasil
  • 0


Guest Iv...


1 answer to this question

Recommended Posts

  • 0

Pra começar não entendí bem a sua dúvida, mas:

Para criar um cookie, faça :


Response.Cookies ("Meucookie")("Valor1") = "Este é o primeiro valor"

Response.Cookies ("Meucookie")("Valor2") = "Segundo valor"

Response.Cookies ("Meucookie")("Valor3") = "Valor 3"

Response.Cookies ("Meucookie").Expires = "11/09/99" 'ultima linha


(omitindo a última linha, a do expires, este será um cookie de seção, ou seja, quando o navegador for fechado o cookie será apagado).

Para verificar se o cookie existe, faça:


Dim valorcookie

valorcookie = Request.Cookies("MeuTeste")("Valor1")

if valorcookie = "" then

Response.write "Não há cookies criados"


Response.write "há cookies criados" & valorcookie

end if


Para escrever o cookie, faça:


Response.Write (Request.Cookies("MeuTeste")("Valor1"))


Espero ter te ajudado !!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...