Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help needed with login & logout
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help needed with login & logout

 Post Reply Post Reply
Author
xcent View Drop Down
Newbie
Newbie
Avatar

Joined: 13 January 2004
Location: United Kingdom
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote xcent Quote  Post ReplyReply Direct Link To This Post Topic: Help needed with login & logout
    Posted: 13 February 2004 at 6:47pm

Can some help me out here i have redesigned the header.asp file

http://www.xcent.co.uk/forum

Looking at my site you will see top left (Welcome to Xcent-UK ( Log In | Log Out | Register )

What i need to know is instead of having the log in | log out showing i just want to show the login then when the member as logged in change to log out automaticaly any ideas how to do this im totaly new at asp.

Thanks

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2004 at 8:02pm
if lngloggedinuserid <> 0 then response.write "log out" else response.write "login"
Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2004 at 8:47pm

Originally posted by Semikolon Semikolon wrote:

if lngloggedinuserid <> 0 then response.write "log out" else response.write "login"

No ... you need to allow for the "guest" user who is assigned a "intloggedinuserid" of 2

eg do a:

response.write "login:" & lngloggedinuserid

and you will find it is 2 when not logged in

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2004 at 3:37am

oh.. yeah, saw that now.. i knew it was 2 but in common.asp it started with 0.. then it was set to 2 later..

sorry for that, but now its ok..

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.