Forum Moderators: coopster

Message Too Old, No Replies

frames causing login problem

(or can I make changes to script and keep frames)

         

derek mcgilvray

8:06 pm on Jun 4, 2007 (gmt 0)

10+ Year Member



Hi folks,

I have a simple login script which works well normally, but when logging in via a framed redirect it doesn't set the username as a session variable.

My login script normally POSTS the username to be processed, checks against the password stored in the database and then stores the username as a session variable.

I do like the use of the frames, as I'm linking between sites and want to have just the one domain name on view, but this problem needs to be fixed. Any ideas?

Derek

barns101

8:47 pm on Jun 4, 2007 (gmt 0)

10+ Year Member



Sessions often rely on cookies. Cookies set by one domain cannot be read by another domain, which is probably where your problem lies.

derek mcgilvray

8:59 pm on Jun 4, 2007 (gmt 0)

10+ Year Member



Thanks for your prompt reply - and so it's bye bye to frames!

barns101

9:42 pm on Jun 4, 2007 (gmt 0)

10+ Year Member



That's the best thing to do. They're not good for SEO, either.

jatar_k

9:44 pm on Jun 4, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> They're not good for SEO, either.

good on ya barns101

as programmers it is very important for us to remember the big picture as well.