M
Martin
Hi,
After I gave up on tracking user sessions through the session object
(Session_OnEnd is still not triggered by Abandon() even with mode=InProc and
me manipulating session variables; in a new test project it is only
triggered the first time, it really sucks pretty bad) I started looking at
alternatives and I found FormsAuthentication. I just implemened it and it
seems very nice. But, of course, there is a problem with it (it wouldn't be
fun if it all just worked straight away, right?).
My entry-page is a frame set. Now the trouble is that the login page to
which I am automatically redirected before I get to this page with the frame
set does not embed nicely into the targeted frame. It is a matter of
sequence I guess, I do have
<base target="RightPane" />
in mij login.aspx file but there is no RightPane until I am authenticated
and the frame set gets executed in the browser.
After the second redirect (when I have been authenticated) it gets worse.
The frame set embeds my home page as it should, but any subsequent pages I
navigatye to appear "full screen", disregarding the frame set where they
used to be embedded in because of the base tag. Does anyone how to handle
this nicely?
I think what I want is authentication to ignore my frame set page (to allow
anonymous visitors to it). I read something about location tags in
web.config. Could these be helpful? This would all be work-arounds though, I
am interested to head about your ideas on the matter.
Regards, Martin.
After I gave up on tracking user sessions through the session object
(Session_OnEnd is still not triggered by Abandon() even with mode=InProc and
me manipulating session variables; in a new test project it is only
triggered the first time, it really sucks pretty bad) I started looking at
alternatives and I found FormsAuthentication. I just implemened it and it
seems very nice. But, of course, there is a problem with it (it wouldn't be
fun if it all just worked straight away, right?).
My entry-page is a frame set. Now the trouble is that the login page to
which I am automatically redirected before I get to this page with the frame
set does not embed nicely into the targeted frame. It is a matter of
sequence I guess, I do have
<base target="RightPane" />
in mij login.aspx file but there is no RightPane until I am authenticated
and the frame set gets executed in the browser.
After the second redirect (when I have been authenticated) it gets worse.
The frame set embeds my home page as it should, but any subsequent pages I
navigatye to appear "full screen", disregarding the frame set where they
used to be embedded in because of the base tag. Does anyone how to handle
this nicely?
I think what I want is authentication to ignore my frame set page (to allow
anonymous visitors to it). I read something about location tags in
web.config. Could these be helpful? This would all be work-arounds though, I
am interested to head about your ideas on the matter.
Regards, Martin.