Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 5th, 2006, 12:05 PM   #1
lucifer
Programmer
 
lucifer's Avatar
 
Join Date: Oct 2005
Posts: 84
Rep Power: 4 lucifer is on a distinguished road
how to check if a user is logged in

hi
i want to check if the person acessing a page is logged in or not
plz help
__________________
"You're good... but me, I'm magic"
lucifer is offline   Reply With Quote
Old Nov 5th, 2006, 12:28 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
...to what?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Nov 5th, 2006, 4:55 PM   #3
Iftikhar
Programmer
 
Iftikhar's Avatar
 
Join Date: Oct 2006
Location: London
Posts: 40
Rep Power: 0 Iftikhar is on a distinguished road
Send a message via MSN to Iftikhar
you have not asked a complete questions. There can be various ways. The one easy method is to create a session variable on the time of logon for that user on successful logon. Then where u need to check the logon information check session, and it will tell you the story. On logoff destroy session.
__________________
Iftikhar Ahmed Khan
For doing an experiment on programmer's mood please visit http://uxisfyp1.brunel.ac.uk/cspgiak
Iftikhar is offline   Reply With Quote
Old Nov 6th, 2006, 3:43 AM   #4
lucifer
Programmer
 
lucifer's Avatar
 
Join Date: Oct 2005
Posts: 84
Rep Power: 4 lucifer is on a distinguished road
sorry
well what i want is that when a person logins that there should be some way to keep him logged in and if any page is accessed without login them i should be able to show acess denied message
__________________
"You're good... but me, I'm magic"
lucifer is offline   Reply With Quote
Old Nov 6th, 2006, 7:28 AM   #5
Iftikhar
Programmer
 
Iftikhar's Avatar
 
Join Date: Oct 2006
Location: London
Posts: 40
Rep Power: 0 Iftikhar is on a distinguished road
Send a message via MSN to Iftikhar
The method I suggested will work. Create session variable at the login time and check at page_load this session. If it is null there was no proper login else it was proper
__________________
Iftikhar Ahmed Khan
For doing an experiment on programmer's mood please visit http://uxisfyp1.brunel.ac.uk/cspgiak
Iftikhar is offline   Reply With Quote
Old Nov 8th, 2006, 7:54 PM   #6
Samuaijack
Programmer
 
Samuaijack's Avatar
 
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3 Samuaijack is on a distinguished road
may be (it will only work if the user is enabling cookies) you can make a cookie on his comp. with the username and password ofcourse encrypted and when the site loads it will check for that cookie if it is there it will take the username and password and log him in.
Samuaijack is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Script :-) Pizentios Perl 18 Jan 12th, 2006 10:50 AM
FiveDigit + RandomeNumber Game. TecBrain Java 0 Nov 18th, 2005 2:53 PM
User Input for Number Format ericelysia1 Java 0 Jul 21st, 2005 3:41 PM
Instant Messaging App Help AusTex C 0 Apr 27th, 2005 4:52 PM
Loading and Destroying web user controls into a panel see07 C# 0 Feb 2nd, 2005 12:38 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:14 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC