replacing "session" in web application

session is used in web application to store information across diff webpage.. but is there any other way of replacing it into window application form

thanks and regards.


Answer this question

replacing "session" in web application

  • Bilbob

    ok.. i am suppose to do a login for user. so throught the system the member id will be passed around.. so how i store the memberid  my member will be doing other part of the application so how their application know the member id
  • Boris C

    Um, I suppose you could but why would you want to  A WinForm application is in memory and you don't have the statelessness problem that Web apps have.

    Tell us more about what you're trying to do and we'll try to help.

    Don

  • Joshua Belden

    Hi,
    There are separate ways of solving your problems.

    1. Create a structure called userprofile, and store it in module. This can have the user identity etc.
    2. If you want to pass the userID, you can do so by creating properties in each form. Like Set_UserID, and then base your processing on the user id.

    I still think, a structure with such user related properties, like UserID, Email, TelNo etc. stored in a MOdule as a public structure will simplify your problem

    Hope this helps

  • Dan-el

    Sure. Just create a global variable, set the value, and it is available throughout your application. There are a few scoping issues in some scenarios, depending how you have your app structured in assemblies. But it it's all one big assembly you shouldn't have a problem.

    Something like this:

    Public sString as String
    sString = "Hi!"

    Then you can just access the sString variable anywhere in the assembly.

    That what you're asking

    Don

  • Mike F

    erm... sorry i am new in programming.. so can be more detailed so that i know what u all saying  if can pls provide steps on how to do it... thanks..
  • replacing "session" in web application