problems with frames

  • Thread starter Filip Mato¹iæ
  • Start date
F

Filip Mato¹iæ

I ha a login page which has no frames, and when a user
logs in, i set a session variable ( session("userlogged")=true
to true, then the page redirects the
user to a page with frames(3 frames) in which i check if the user did log
correctly

if (Isempty(session("userlogged"))=true then
response .redirect"back_to_login_page.asp"
end if

(so he dosent just call the page) but i dont know which page in the frameset
sees the session variable. I put the checking of the session variable in
all of
them but when i open the page where the frames are it dosent see the
session variable
(all of the pages are asp)

thx
 
P

polilop

yes, they all check but they all fail.
So, to clarify.
Login.asp calles frameset.asp
Frameset.asp has 3 frames (frame1.asp,frame2.asp,frame3.asp).
The 3 frame pages have the check, to ensure they aren't called directly
Frameset.asp also has the check, but is failing?

Is that what you are saying?
 
P

polilop

I set the session variable to false in my global.asa but when i start my
page with frames first it dosen't redirect but any other page which has no
frames
redirects with no problem. i double checked the code that checks and it
is same as in other pages. The thing is when i print the variable in my
frame
it prints (Response.write....) but when i put
if (Isempty(session("userlogged"))=true then
response .redirect"back_to_login_page.asp"
end if
it dosent redirect.
alsso i tried to put in my global.asa when the session starts that
it emmeditly redirects to the login page but then my explorer flashes
and it seems like it tries to load the page but it can't. For me that would
allso be a solution
but it dosen't work?
 
M

Mark Schupp

it prints (Response.write....) but when i put
if (Isempty(session("userlogged"))=true then
response .redirect"back_to_login_page.asp"
end if
it dosent redirect.

You stated earlier that:
I set the session variable to false in my global.asa but when i start my
so the userlogged variable will never be empty. try

if not session("userlogged") then


--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top