Creating a session variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanamashokreddy
    New Member
    • Apr 2008
    • 8

    Creating a session variable

    How to create a session variable please Explain me with an example

    That will be a very great help to me to learn

    thanks
  • malav123
    New Member
    • Feb 2008
    • 217

    #2
    HI,
    It is so simple, to create the session variable write,
    Session("varnam e")=value

    for example in your login page you are creating one session variable like,

    Session("User_I d")=objLogin.ui d

    then you can use this variable in all the pages of your project.....

    -malav.
    Last edited by malav123; Apr 9 '08, 06:46 AM. Reason: To correct syntax

    Comment

    Working...