![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 84
Rep Power: 4
![]() |
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" |
|
|
|
|
|
#2 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
...to what?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#3 |
|
Programmer
|
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 |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Oct 2005
Posts: 84
Rep Power: 4
![]() |
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" |
|
|
|
|
|
#5 |
|
Programmer
|
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 |
|
|
|
|
|
#6 |
|
Programmer
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3
![]() |
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backup Script :-) | Pizentios | Perl | 18 | Jan 12th, 2006 11:50 AM |
| FiveDigit + RandomeNumber Game. | TecBrain | Java | 0 | Nov 18th, 2005 3:53 PM |
| User Input for Number Format | ericelysia1 | Java | 0 | Jul 21st, 2005 4:41 PM |
| Instant Messaging App Help | AusTex | C | 0 | Apr 27th, 2005 5:52 PM |
| Loading and Destroying web user controls into a panel | see07 | C# | 0 | Feb 2nd, 2005 1:38 PM |