Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Unable to retrieve session value in ASP.Net Page

Unable to retrieve session value in ASP.Net Page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Balagurunathan S
    wrote on last edited by
    #1

    Hi Friends.. I am having a login page (.aspx) which is a pop up page..Now i maintain a session in this login page to hold the username in the session..Now i need to retrieve this session in another page which is having 3 iframes..I need the session variable in the 3rd iframe..But when i try to retrieve i am getting "nothing" in the session..Wat might be the problem..? i am developing in .Net 2005 using atlas framework. Regards,

    Balaguru

    E 1 Reply Last reply
    0
    • B Balagurunathan S

      Hi Friends.. I am having a login page (.aspx) which is a pop up page..Now i maintain a session in this login page to hold the username in the session..Now i need to retrieve this session in another page which is having 3 iframes..I need the session variable in the 3rd iframe..But when i try to retrieve i am getting "nothing" in the session..Wat might be the problem..? i am developing in .Net 2005 using atlas framework. Regards,

      Balaguru

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Just a general point, but try avoiding pop-up windows, some users browser block this feature. Can you show us the code for the iframes

      B 1 Reply Last reply
      0
      • E eyeseetee

        Just a general point, but try avoiding pop-up windows, some users browser block this feature. Can you show us the code for the iframes

        B Offline
        B Offline
        Balagurunathan S
        wrote on last edited by
        #3

        The following is third iframe in which i call a .aspx page.The code is as follows.. In login page Session value stored : Session("USERID") = gstrUserId In Game Page (3rd Iframe page) session value retrieved : lstrid = CType(Session("USERID"), String) (or) lstrid =Session("USERID") But i am getting "nothing" in lstrid , when i execute this with the help of breakpoint Wat could be the problem.? Thanks & Regards

        Balaguru

        A 1 Reply Last reply
        0
        • B Balagurunathan S

          The following is third iframe in which i call a .aspx page.The code is as follows.. In login page Session value stored : Session("USERID") = gstrUserId In Game Page (3rd Iframe page) session value retrieved : lstrid = CType(Session("USERID"), String) (or) lstrid =Session("USERID") But i am getting "nothing" in lstrid , when i execute this with the help of breakpoint Wat could be the problem.? Thanks & Regards

          Balaguru

          A Offline
          A Offline
          Ashish Sehajpal
          wrote on last edited by
          #4

          r u using any classes in between i.e. BLL / DAL etc...? this is the only issue with such kind of problems.. other chances may be that somewhere any dynamic class code i sgetting changes...means your are creating some compilable code dyamically... third, may be there is some event which is resetting your session.. {ptu some code in global.asax file for catching session event}

          Ashish Sehajpal

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups