Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 30-06-2005, 10:21 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2004
Location: New Delhi
Posts: 39
Default Logout Code



Hi
Can any one help me in craeting a logout page in asp..so that clicking on the logout link..the user's session is terminated?
How do I create a session in asp for a logged in user such that other's can'y logon?

I m waiting eagerly for a response...

Siddharth
__________________
Get In Touch With ME!!!!
SID
sid_b6505 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-06-2005, 02:33 PM   #2 (permalink)
QA Juggler
 
saROMan's Avatar
 
Join Date: Aug 2004
Location: format c: /s/u/x
Posts: 801
Default

Taken From : http://www.expinion.net/support/issu...ID=501&CATE=15

I am not a ASP Guru ..so plz chk if the folowing code is any use to you or Not.....


Direct Logout Link:
Try adding this code where you want the words Log Out to appear.

Log Out




The code above presumes that the login.asp file is in the same directory as your protected page, you may have to change the path to something like the one below.

Log Out

If you are still having trouble, you can try the full path like this:
Log Out
The path depends on how your server is set up and how you have setup the folders on your site.

::::

Changing link with built-in check:
For sites that use the same menu / header for both member areas and non-member areas (like in our example area), you may want to have the option of linking to either the Logout or the Register area depending on whether or not the user is already logged in. (If they're already logged in, they don't want to register. If they are not already logged in, they certainly don't want to logout and they can login at the appropriate link that you've setup, but they may in fact need to register.)

You can clip the code from the mms/example/inc_header.asp file, but this is part of the header code below, with the portion in red being directly related to the logout function.

<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
<td width="200"> </td>
<td bgcolor="#C8CEE6" width="80%">
<table bgcolor="#ffffff" align="right" cellpadding="2" cellspacing="0" bordercolor="#808080" style="border: solid 1px;"><tr>
<td width="100" align="center">Home</td>
<td width="100" align="center">Any Members</td>
<td width="100" align="center">Group 1 or 5</td>
<td width="100" align="center">Help Me </td>
<% If Session("PMMS_IN") = "True" Then '// CHECK IF MEMBER IS LOGGED IN ALREADY %>
<td width="100" align="center">Log Out</td>
<% Else %>
<td width="100" align="center">Register</td>
<% End If %>
</tr></table>
__________________
8-) सारोमान :!: :!: :!:
saROMan is offline  
Old 30-06-2005, 05:01 PM   #3 (permalink)
In The Zone
 
Join Date: May 2004
Location: Moving out of mumbai soon!
Posts: 240
Default

I know only JAVA.. there u destroy the session object.
__________________
Believing you can do it is half the work..Believe in yourself.
My cam sample pics
http://www.thinkdigit.com/forum/viewtopic.php?t=24414
plasmafire is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by Charan

Advertisement




All times are GMT +5.5. The time now is 06:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2