HighDots Forums  

How to keep logged in users in.

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss How to keep logged in users in. in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MalRom
 
Posts: n/a

Default How to keep logged in users in. - 11-04-2005 , 05:19 PM






Hi to all.

Can anyone suggest how to keep logged in users in.

I have created a login page.
Then a logged in page or welcome page.

When you log in, everything works fine but if you click on a few links to
browse the site then click on the login page again it brings you back to the
beginning and you need to login again.

Is there an option that if you are logged in and you click on the login page
it lets your right in or says you are already logged in??

Any help would be great.

Malcolm


Reply With Quote
  #2  
Old   
Holland87
 
Posts: n/a

Default Re: How to keep logged in users in. - 11-04-2005 , 05:38 PM






Use session cookies.

http://www.codefixer.com/tutorials/session_cookies.asp

There might be better tutorials out there, but that is the one I know of. Hope this helps.



Shane H

Reply With Quote
  #3  
Old   
darrel
 
Posts: n/a

Default Re: How to keep logged in users in. - 11-04-2005 , 06:12 PM



Quote:
Is there an option that if you are logged in and you click on the login
page
it lets your right in or says you are already logged in??
You would normally use cookies for this. When they log in, you write a
cookie saying they are logge in. Then on the log-in page, you read this
cookie, and, if they are already logged in, you skip that page and send them
on to the page in question.

The page in question would also read this cookie to ensure that the person
is, indeed, logged in.

-darrel




Reply With Quote
  #4  
Old   
Les Matthews
 
Posts: n/a

Default Re: How to keep logged in users in. - 11-04-2005 , 06:41 PM



Are you using the standard DW login user behavior? If so, it will create a
variable to track the logged in user (when using ASP, it's a session
variable called MM_Username). Use this variable to selectively hide/show the
link to the login page - if the variable does not exist show the link to
login; if the variable does exist (indicating the user is already logged in)
show a link to log out instead.

"MalRom" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi to all.

Can anyone suggest how to keep logged in users in.

I have created a login page.
Then a logged in page or welcome page.

When you log in, everything works fine but if you click on a few links to
browse the site then click on the login page again it brings you back to
the
beginning and you need to login again.

Is there an option that if you are logged in and you click on the login
page
it lets your right in or says you are already logged in??

Any help would be great.

Malcolm




Reply With Quote
  #5  
Old   
MalRom
 
Posts: n/a

Default Re: How to keep logged in users in. - 11-04-2005 , 10:55 PM



Holland87

Thanks for the prompt reply.

I will give that a go.

Thanks for your time.

Malcolm

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.