Problem with asp.net session

From: Roberto (rbethlem@wanadoo.fr)
Date: 08/28/02


From: "Roberto" <rbethlem@wanadoo.fr>
Date: Wed, 28 Aug 2002 00:37:37 -0700


Hello,
I have a problem of asp.net sessions.
i have a default.aspx which contains 2 iframes, A.aspx and
B.aspx.
When i authenticate, i put the name of the user in a
session :
Session["name_user"] = "ROBERTO"
When i try to read this data from A.aspx and B.aspx, it
works fine.
The problem is that i lose my session when i call B.aspx
from A.aspx with a javascript hyperlink :

<a href="top.document.all.IFRAME_B.src='http://B.aspx?
id=2'"> LINK TO B.ASPX </a>

Why ?? I stay in my aspx session ??

It works when i submit a form from A.aspx, for example :

function SUBMIT_IFRAME_B(idredirect)
{top.document.all.IFRAME_B.Document.FORMB.idredirect.value
= idredirect;
top.document.all.IFRAME_B.Document.FORMB.submit();}

Thanks,
Roberto
.



Relevant Pages

  • Re: [PHP] Back to security
    ... Think of HTTPS as like a bank vault in the basement of a branch bank. ... If you authenticate users outside the steel wall, ... sessionID is compared with the one in DB, ... Compare the output of on the two pages, ...
    (php.general)
  • Re: Read session data of all users
    ... I'm trying to come up with a better way to authenticate a user across ... different web applications from a central place. ... and app3 will be redirected to authenticate with app1 if their session ... or at least get a reference to a HttpSessionState objects ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to re-use existing session?
    ... but I had to authenticate to forward the port. ... a session running, although it's in the background. ... I can also remove the -N switch to the initial SSH command, ...
    (comp.security.ssh)
  • VisualStudio 2003 question
    ... I'm relatively new to VisualStudio 2003 and have to create an application ... that uses Web Services to authenticate a user. ... Login page instantiates an object which can also be used to authenticate ... my user (Store the object in Session) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Question regarding bypassing security
    ... won't let you authenticate to windows like that anymore. ... >server database behind it and does authentication. ... > no user ID/password, it needs to check the session status. ...
    (microsoft.public.dotnet.framework.aspnet)