Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Application Variable and Session Variable within the Scripting forums, part of the Web Development category; What is the difference between application variable and session variable?...
|
|||||||
| Scripting Discuss Issues and Problems related to VB Script, Java Script and other Client Side Scripting |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Re: Application Variable and Session Variable
Application variables are the variables which remain common for the whole application… Their value can be used across the whole application… And they die only when the application stops or probably when they are killed forcibily… The ideal example for these kindof variables are site counter… We can find out how many people accessed a particular site since the time it went live via application variables and incrementing the same on ever session start..
Session variables are variables which remain common for the whole application but for one particular user. They also can be used across the whole application… But they die when a particular user session ends or probably when they are killed forcibily… The ideal example for this kindof variable are user id… You might want to show "Welcome Vishal" on every page of your site till vishal logs off… So in session start you set a variable to "Welcome Vishal" and kill it on session end… All these methods like session start, session end, application start, application end are found in global.asax and that’s the reason global.asax is one for the whole ASP.Net application… I hope this provides you with the info that you needed… |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| variable, variable name | sajithkutty | PERL | 5 | 08-09-2009 02:12 AM |
| Parameter variable and Mapping variable | kiranmanju | Data Warehousing | 0 | 01-08-2008 04:17 AM |
| Create new variable in BO | Geek_Guest | Data Warehousing | 0 | 10-27-2007 04:55 AM |
| Normal Variable and the Comp-3 Variable in Cobol | Geek_Guest | MainFrame | 0 | 07-04-2007 09:47 PM |
| redefine a variable | Geek_Guest | MainFrame | 1 | 05-18-2007 04:57 PM |