SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot Imran-Saami's Avatar
    Join Date
    Sep 2004
    Location
    Pakistan-Dubai
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Opening a window with New Session

    I want to open a new window from ASP page, which may not inherit sessions values from its parent.

    I'm opening a new window (JS:window.open) from an ASP page, the child window inherits all the session variables from parent (thats what i dont want). and if I write session.abandon in the child ASP file, it also destroys the parent 's session values.

    Please help me how I can open an ASP page in new window which doesn't inherit sessions from parent.

    Thanx in Advance !

  2. #2
    SitePoint Guru hgilbert's Avatar
    Join Date
    Dec 2004
    Location
    London
    Posts
    839
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's "probably" not possible since Session is attached to the IP of the visiting person.


  3. #3
    Original Gangster silver trophy Thing's Avatar
    Join Date
    Oct 2000
    Location
    Philadelphia, PA
    Posts
    4,708
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Another solution could be to store the session values from the parent in either a cookie or variable, abandon the session, create a new session in the child and when the child session is done abandon that session and recreate the parent session from the cookies or variables.

    Sort of a weird work around but it would work.

  4. #4
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you create a session by doing this:

    session("new") = Session("old")
    session.contents.remove("old")

    Gav

    Quote Originally Posted by Thing
    Another solution could be to store the session values from the parent in either a cookie or variable, abandon the session, create a new session in the child and when the child session is done abandon that session and recreate the parent session from the cookies or variables.

    Sort of a weird work around but it would work.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •