Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session variables
Message
 
 
À
11/02/2011 08:38:06
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01499742
Message ID:
01499759
Vues:
36
>HI
>
>I need to store some values that I can get at frequently in my web site.
>
>I want to store them as session variables
>
>Where is the best place to create and load them
>
>Thanks
>
>Nick

You can create a session variable any page and get it at any page. These are not like variables that have a scope. For example, in my ASP.NET app I create a couple of session variables in one of the pages, bases on the user selection (like user ID or something like that). Then I can "get" the value in this session variable in any other page of the site.

HTH.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform