Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Cookie or NOT to cookie, THAT is the question
Message
De
05/09/2003 23:41:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00822654
Message ID:
00826698
Vues:
25
>c) QueryString parameters are rarely filtered out. The biggest difficulty is that you must ensure that every link in your HTML document carries on this parameters, otherwise the chain is broken and a new session starts.

We use both cookies and querystring params to pass our SessionID along.
We attempt to set a cookie at login.
On subsequent hits, if there was no cookie, we assume cookies are somehow blocked and pass the SessionID in the QueryString.

You don't need to remember to write the URL to include your variable every time.

It is pretty easy to use StrExtract() and StrTran() to re-write all the URLs before sending the page.
I wrote my own ExpandTemplate to get control over stuff like this.
In the testing I did, there was no measurable performance hit.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform