Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 1st, 2003, 10:09 PM
Registered User
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login message

How do you make a log in message. when a user has logged in Something Like this the Message id like to have on my main page "You are now logged as Cardplya7804"

Old December 2nd, 2003, 12:12 AM
Authorized User
Join Date: Jun 2003
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin

It depends on how your login system works, but you could create some session variables on the checklogin page. eg.

If login successfull.... grab their details

Session("FirstName") = objRS("FirstName")
Session("LastName") = objRS("LastName")
Response.Redirect "main.asp"

You could then use this throughout the session like so on your asp pages.

Logged In As: <%= Session("FirstName") & " " & Session("LastName") %>



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Help. Login to unique login page per user Kainan Classic ASP Professional 10 May 3rd, 2005 07:47 AM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.