Imane,

> I have a question, would anyone explain to me the difference
> between the session variables and Application variables, with 
> concret examples? 

An Application variable when set can be read by all sessions running in that
application scope. Lets say you have a Application Variable that stores the
current temperature. 

Application("Temperature") = "12.5"

ALL sessions coming to your site will see the SAME value for that
application variable as 12.5

A session variable is different in that it can only read the value set for
the single session. So if you set a session variable to some value, ONLY
that session can read it, no other sessions can see the value you set for
this session.

Example:
Let's say you generate a unique number for every visitor that comes to your
site. You could then put that number in a session variable like this:

Visitor A comes to the site
Session("MySessionVariable") = 1234

Visitor B comes to the site
Session("MySessionVariable") = 6789

Visitor A and B have both access to the SAME Session variable
"MySessionVariable" but the contents of the variable is different for each.

Hope that helps.

--Chad




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to