locked
what is session RRS feed

  • Question

  • i have lot of doubt with session object

    • Edited by gann Wednesday, September 10, 2008 9:05 AM
    • Moved by jack 321 Friday, September 12, 2008 7:13 AM ooooooooo (Moved from Visual C# Language to Off-Topic Posts (Do Not Post Here))
    Wednesday, September 10, 2008 8:49 AM

Answers

  • a: which session object?
    b: I doubt that this is language related (you might want to try an ASP.NET forum if this is ASP.NET related)

    Marc
    • Marked as answer by jack 321 Friday, September 12, 2008 7:13 AM
    Wednesday, September 10, 2008 9:28 AM
  • "In ASP.NET we have a state called view state this is used to track to track how much amount of time a user is in a site and what sort of files did he browse into."

    This statement need more clarifications because i would have though that a view state is stored in a page (In an hidden form element in your page). View states is page state not an application wide state or user time state.

    Agility. http://salakoahmed.blogspot.com
    • Marked as answer by jack 321 Friday, September 12, 2008 7:13 AM
    Thursday, September 11, 2008 3:43 PM
  • In simple, ASP.NET manage application state in these ways

    1. Using Session (on Server)
    2. Application variables (on Server)
    3. Database (on Server)
    4. Using Cookies (on Client)
    5. Using ViewState ( on Client)
    6. QueryString (on Client)
    7. Hidden Fields (on Client)

    You can use session in many ways according to your requirement but the main purpose of session is to store variables on server memory.

    when ever a client(web browser) opens a page, session will be created on server and as clients close the browser session will automatically destroy.

    Session is purely related to each client but if you want to use something that is useful for every client you can use database and application variables

    Hope it will help you

    Regards,


    Haider Raza Software Engineer, ZABSolutions.
    • Marked as answer by jack 321 Friday, September 12, 2008 7:13 AM
    Friday, September 12, 2008 3:56 AM

All replies

  • a: which session object?
    b: I doubt that this is language related (you might want to try an ASP.NET forum if this is ASP.NET related)

    Marc
    • Marked as answer by jack 321 Friday, September 12, 2008 7:13 AM
    Wednesday, September 10, 2008 9:28 AM
  • ASP.NEt have support for different intrinsic objects that are used to store state across users interaction, request, cross thread state etc. And Session management is one of them.

    Session object is an ASP.NET intrinsic object, that is provided to you by the ASP.NET runtime engine. For your asp.net session to work effectively, your browser should be configured to allow cookie, because ASP.NET Session relies on a non-persistent cookie created in your browser. If your browser is not configured to allow cookies, asp.net appends a session id to your URL which is used in identify your browser.

    what are your doubts.

    Agility. http://salakoahmed.blogspot.com
    Wednesday, September 10, 2008 10:16 AM
  • simplifying it session is simply a time in which a user spends a certain amount of time in a website. In ASP.NET we have a state called view state this is used to track to track how much amount of time a user is in a site and what sort of files did he browse into. the viewstate tracks all of these and dumps them into a file which r usually called cookies.
    ASP.NET has 2 kinds of session states .in proc and out of proc and we mostly use inproc .
    If you want to know more about session just go to google which might help you even more. 
    Wednesday, September 10, 2008 7:06 PM
  • simplifying it session is simply a time in which a user spends a certain amount of time in a website. In ASP.NET we have a state called view state this is used to track to track how much amount of time a user is in a site and what sort of files did he browse into. the viewstate tracks all of these and dumps them into a file which r usually called cookies.
    ASP.NET has 2 kinds of session states .in proc and out of proc and we mostly use inproc .
    If you want to know more about session just go to google which might help you even more. 
    Wednesday, September 10, 2008 7:06 PM
  • "In ASP.NET we have a state called view state this is used to track to track how much amount of time a user is in a site and what sort of files did he browse into."

    This statement need more clarifications because i would have though that a view state is stored in a page (In an hidden form element in your page). View states is page state not an application wide state or user time state.

    Agility. http://salakoahmed.blogspot.com
    • Marked as answer by jack 321 Friday, September 12, 2008 7:13 AM
    Thursday, September 11, 2008 3:43 PM
  • In simple, ASP.NET manage application state in these ways

    1. Using Session (on Server)
    2. Application variables (on Server)
    3. Database (on Server)
    4. Using Cookies (on Client)
    5. Using ViewState ( on Client)
    6. QueryString (on Client)
    7. Hidden Fields (on Client)

    You can use session in many ways according to your requirement but the main purpose of session is to store variables on server memory.

    when ever a client(web browser) opens a page, session will be created on server and as clients close the browser session will automatically destroy.

    Session is purely related to each client but if you want to use something that is useful for every client you can use database and application variables

    Hope it will help you

    Regards,


    Haider Raza Software Engineer, ZABSolutions.
    • Marked as answer by jack 321 Friday, September 12, 2008 7:13 AM
    Friday, September 12, 2008 3:56 AM
  • For ASP.Net issue,

    Discussion in http://forums.asp.net/



    Please remember to mark the replies as answers if they help and unmark them if they provide no help. http://forums.msdn.microsoft.com/en-US/csharpide/thread/8e9ed0d7-11ff-402a-8489-9b5f05eeb706
    Friday, September 12, 2008 7:12 AM