Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#

 
in my site last login id will display all member who browse my site.
 
can u help me to solve this remove last login id...??????
i will use coockie and then take session from cookie.
 
Ex: memberA and memberB
 
once memberA login my site and browse.
and he/she leave pc without logout.
 
and then other memberB browse my site and login it but then he got login id of memberA. he don't get his login id in my site.
Posted 15-Oct-12 20:12pm
Edited 15-Oct-12 21:07pm
v2
Comments
n.podbielski at 16-Oct-12 2:16am
   
I read it few times and still dont have idea what you asking.
vivektiwari97701 at 16-Oct-12 2:17am
   
it is not possible to know without code ...update ur question with your code .....
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
Possible issue is you have used static variable to store the last login id. or you may store it in table and fetch from all the system.
 
If you are using windows application then use public variable or property to access it from other forms. and if you are using web application then use Session variable.
 
Hope you resolve your query soon.
 
best luck.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Please check if you have used output cache in your application. If yes then remove the output cache and then check or you can use javascript/asp.net feature to update the login information of the page.
 
Hope this will help you.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 16 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100