Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTEMP FOLDER Pin
Member 393125924-Apr-09 2:03
Member 393125924-Apr-09 2:03 
AnswerRe: TEMP FOLDER Pin
DoctorMick24-Apr-09 4:27
DoctorMick24-Apr-09 4:27 
AnswerSelf Cleaning Pin
David Mujica24-Apr-09 5:26
David Mujica24-Apr-09 5:26 
QuestionSession? Pin
Karthick_gc24-Apr-09 1:53
Karthick_gc24-Apr-09 1:53 
AnswerRe: Session? Pin
Abhijit Jana24-Apr-09 2:01
professionalAbhijit Jana24-Apr-09 2:01 
GeneralRe: Session? Pin
Karthick_gc24-Apr-09 2:06
Karthick_gc24-Apr-09 2:06 
GeneralRe: Session? Pin
Sandeep Akhare24-Apr-09 7:52
Sandeep Akhare24-Apr-09 7:52 
GeneralRe: Session? Pin
Abhijit Jana24-Apr-09 18:56
professionalAbhijit Jana24-Apr-09 18:56 
Sandeep Akhare wrote:
Its not good to get client events by using the javascript.

Then how will you trap the browser close event ?
if you want to detect browser close you have to use javascript.

Sandeep Akhare wrote:
Another way is to write the code in the Session_End event similar event is there (I forgot D'Oh! )
there you can have you logic what you want to do whenever user session has been end.

if you use Session.Abandon(), it will directly moved to Session_End() event in your Global.asax file, and inside that methods you can write your logic that what ever you want to implement.

Sandeep Akhare wrote:
One question
1. Do you need to do update the DB no sooner user closed the window ?

As per my understanding, he is storing some user information while user log into the system. and he is removing those in the log off. But, the problem happens when user close the browser. If user close the browser, Session_end() will only call when its time out.

cheers,
Abhijit
CodeProject MVP

GeneralRe: Session? Pin
Sandeep Akhare27-Apr-09 8:02
Sandeep Akhare27-Apr-09 8:02 
GeneralRe: Session? Pin
Abhijit Jana24-Apr-09 19:06
professionalAbhijit Jana24-Apr-09 19:06 
QuestionNeed to get attibute name Pin
Satish - Developer24-Apr-09 1:33
Satish - Developer24-Apr-09 1:33 
AnswerRe: Need to get attibute name Pin
Paddy Boyd24-Apr-09 1:46
Paddy Boyd24-Apr-09 1:46 
QuestionReport Pin
sulimanpasha24-Apr-09 1:19
sulimanpasha24-Apr-09 1:19 
AnswerRe: Report Pin
scottgp24-Apr-09 1:40
professionalscottgp24-Apr-09 1:40 
GeneralRe: Report [modified] Pin
sulimanpasha24-Apr-09 2:17
sulimanpasha24-Apr-09 2:17 
GeneralRe: Report Pin
DoctorMick24-Apr-09 4:31
DoctorMick24-Apr-09 4:31 
GeneralRe: Report Pin
sulimanpasha26-Apr-09 18:01
sulimanpasha26-Apr-09 18:01 
QuestionConvert HTML to DOC in C#.Net Pin
vivek_r24-Apr-09 1:15
vivek_r24-Apr-09 1:15 
QuestionValidate XML with DTD Pin
Rohit16db24-Apr-09 0:26
Rohit16db24-Apr-09 0:26 
Questiona problem with UpdatePanel Pin
wertyk23-Apr-09 23:59
wertyk23-Apr-09 23:59 
AnswerRe: a problem with UpdatePanel Pin
Sundeep Ganiga24-Apr-09 0:50
Sundeep Ganiga24-Apr-09 0:50 
QuestionHtml Editor dll Pin
Hemalatha.A.M.23-Apr-09 23:47
Hemalatha.A.M.23-Apr-09 23:47 
Questionhow to display a message box after execution of save button code Pin
anuj sweet23-Apr-09 23:14
anuj sweet23-Apr-09 23:14 
AnswerRe: how to display a message box after execution of save button code Pin
SayreCC23-Apr-09 23:27
SayreCC23-Apr-09 23:27 
GeneralRe: how to display a message box after execution of save button code Pin
anuj sweet24-Apr-09 0:50
anuj sweet24-Apr-09 0:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.