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. Restarting Session,.

Restarting Session,.

Scheduled Pinned Locked Moved ASP.NET
helpcsharpxmltutorialquestion
6 Posts 4 Posters 0 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.
  • H Offline
    H Offline
    Hema Bairavan
    wrote on last edited by
    #1

    Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance

    H T R 3 Replies Last reply
    0
    • H Hema Bairavan

      Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance

      H Offline
      H Offline
      Herman T Instance
      wrote on last edited by
      #2

      Page.Session.Abort();

      In Word you can only store 2 bytes. That is why I use Writer.

      H 1 Reply Last reply
      0
      • H Herman T Instance

        Page.Session.Abort();

        In Word you can only store 2 bytes. That is why I use Writer.

        H Offline
        H Offline
        Hema Bairavan
        wrote on last edited by
        #3

        hi digimanus, thanks for your response.. i hope you are talking about the Page.Session.Abandon(); but it will kill the session, how to restart the same?

        1 Reply Last reply
        0
        • H Hema Bairavan

          Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance

          T Offline
          T Offline
          T M Gray
          wrote on last edited by
          #4

          Once a session times out, it is gone. Take a lesson from the story of Dr. Frankenstein and let it die in peace. And then name your files with the session ID in the filename to avoid these problems.

          H 1 Reply Last reply
          0
          • T T M Gray

            Once a session times out, it is gone. Take a lesson from the story of Dr. Frankenstein and let it die in peace. And then name your files with the session ID in the filename to avoid these problems.

            H Offline
            H Offline
            Hema Bairavan
            wrote on last edited by
            #5

            Thanks Mr Gray.. read about what you said.but i don't know is that correct. and thanks again for confirming the same.

            1 Reply Last reply
            0
            • H Hema Bairavan

              Hi Experts.. I need one help from you peoples. I am having a website where i have some coding in the Global file for the session starting and session end and all.. in the session end i will delete the file "User.xml" which contains required information which i have stored in on local place for rendering the page. While rendering the page i will check for the file and take the reqd information from there. Its working fine. I am having one Login Page where i will save the "User.xml" file upon clicking the Login Button. Issue What happens is when the session time outs, after clicking the Login Button it is saving the file, but in the session end coding its deleting the same. so i planned to restart the session so that the session end wont fire. So can any one says how to restart the session in C# coding? Thanks in advance

              R Offline
              R Offline
              Rajendra Prasad Panchati
              wrote on last edited by
              #6

              Hi, Just confirm me that after session_end, why are you firing that Login Button event?. Stop that event to continue the past session which was gone and take a New Session and store the Values in Users.xml file. I think you got it....:thumbsup:

              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