Grazie per la tua pazienza e la tua ormai proverbiale gentilezza e disponibilità, caro
SparkOut,
SparkOut wrote:a) the page A places a cookie "meow" that has an expiration time of one year
b) the user navigates in the page A, B, C, D, E, F and always has this cookie "meow" has an expiration time of one year
c) when the user happens in the Z page the cookie "meow" is set to have an expiry time in the past. The web browser will no longer send an expired cookie to the server. As far as the server sees, the cookie has been deleted.
This is what you want to happen, right?
I would like to see happen exactly that!
But I do a small example to make me understand (I know that my English is horrible).
Ok, a big breath and start...
The wonderful
oeiuwyrceiuwyhtuieyhrtvohbghf.com site has many pages.
All are available except one which is
absolutely prohibited.
On all pages except the forbidden (we'll call Z), there is a script that says:
Code: Select all
read cookie
if there is "purr" cookie shows the phrase "Hey, Elvis is not dead!"
if there is NOT a "purr" cookie create it with a validity of one year.
Here's the script of page Z:
Code: Select all
read cookie
if there is "purr" cookies do this:
deletes the cookie "purr" (or take it in the past, in short)
shows the phrase "Do not you care about Elvis? Go away in some hideous techno disco! Budgie!"
So let's see how it behaves the
oeiuwyrceiuwyhtuieyhrtvohbghf.com site:
The user goes to the page,
the page does not show anything, it can not find the "purr" cookie and then
writes the cookie that is valid for one year.
The user goes to the page B (C, D, E, F, etc.), the page reads the cookie "purr" presence
and then displays the message: "Hey, Elvis is not dead!"
The user goes to the
page prohibited Z, the page reads the cookie and displays "You do not care Elvis? Go to some horrendous disco techno! Budgie!"; page
"delete" the "purr" cookie
The user returns to page A, t
he page does not show anything because it does not find the cookie "purr" and then writes the cookie that is valid for one year. And so on...
I hope that I explained better! Thanks in advance!
Mariasole
(='.'=)
PS: Elvis is not dead! Really!
Code: Select all
G __
\\ ,,)_
\'-\( /
\ | ,\
\|_/\\
/ _ '.D
/ / \ |
/_\ /_\
snd '- '-