Click here to Skip to main content
15,918,742 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerBook suggestion & MSDN Pin
David Mujica20-Apr-10 3:21
David Mujica20-Apr-10 3:21 
QuestionUrgent need:Onrowediting of Childgrid inside parent grid Pin
anushh19-Apr-10 21:32
anushh19-Apr-10 21:32 
AnswerRe: Urgent need:Onrowediting of Childgrid inside parent grid Pin
michaelschmitt19-Apr-10 23:19
michaelschmitt19-Apr-10 23:19 
Questionrdlc Matrix Web Report Pin
binu77719-Apr-10 18:10
binu77719-Apr-10 18:10 
AnswerRe: rdlc Matrix Web Report Pin
Sandeep Mewara19-Apr-10 19:02
mveSandeep Mewara19-Apr-10 19:02 
GeneralRe: rdlc Matrix Web Report Pin
binu77719-Apr-10 20:25
binu77719-Apr-10 20:25 
QuestionDoubt on Cookie - asp.net 2.0 Pin
Karan_TN19-Apr-10 16:55
Karan_TN19-Apr-10 16:55 
AnswerRe: Doubt on Cookie - asp.net 2.0 [modified] Pin
Brij19-Apr-10 17:24
mentorBrij19-Apr-10 17:24 
Karan_TN wrote:
1. Can we go with Sessions or Cookies? which is best one?


You can use either one.Better to go for Session because cookies might be disabled at some browser so may not work properly.


Karan_TN wrote:
2. If i set cookie expire time as 1 hour, then after 1 hour will it expire? OR every time when user using the application it will retain its time, so that when user didnt work for 1 hour it will get expire? which is right one.


One need to give specific time to Expiresproperty so it will expire at that time only.So it doesn,t matter whether user works for an hour or not.These are called Persistent cookies, if you set the expires time then it will there in browsers memory and will be removed when one close the browser, these are called <code>Non Persistent cookies</code> and stored on Browser memory while persistent one stored in local hard disk.

for details in Cookies, have a look Beginner's Guide To ASP.NET Cookies

Karan_TN wrote:
Also i want to capture the applications logout time of individual user. so when session expire, can i get those values (say, loginID;team name;department name etc...) and update in my database table?


For this, use session There is two method in Global.asax file one is Session_Start and another is Session_End.Session_Start is called whenevr any new session is getting created and Session_End is called whenever a session ends, so for your requirement you can use Session_End and you can get all those values that you said and can update in datatbase from here only.

Let me know if any issue
Cheers!!
Brij
Check my latest Article :Exploring ASP.NET Validators
modified on Tuesday, April 20, 2010 2:23 AM

GeneralRe: Doubt on Cookie - asp.net 2.0 Pin
Karan_TN19-Apr-10 18:21
Karan_TN19-Apr-10 18:21 
GeneralRe: Doubt on Cookie - asp.net 2.0 Pin
Brij19-Apr-10 19:12
mentorBrij19-Apr-10 19:12 
GeneralRe: Doubt on Cookie - asp.net 2.0 Pin
Abhijit Jana19-Apr-10 20:21
professionalAbhijit Jana19-Apr-10 20:21 
GeneralRe: Doubt on Cookie - asp.net 2.0 [modified] Pin
Brij19-Apr-10 20:41
mentorBrij19-Apr-10 20:41 
GeneralRe: Doubt on Cookie - asp.net 2.0 Pin
Abhijit Jana19-Apr-10 20:42
professionalAbhijit Jana19-Apr-10 20:42 
QuestionWeb user control , Grid edit item collapse .Cancel Pin
mark_me19-Apr-10 13:57
mark_me19-Apr-10 13:57 
QuestionBrowser "Back" Botton - how to control Pin
Abdul-Rhman Alsri19-Apr-10 10:08
Abdul-Rhman Alsri19-Apr-10 10:08 
AnswerRe: Browser "Back" Botton - how to control Pin
Not Active19-Apr-10 10:35
mentorNot Active19-Apr-10 10:35 
AnswerRe: Browser "Back" Botton - how to control Pin
Jamil Hallal21-Apr-10 3:17
professionalJamil Hallal21-Apr-10 3:17 
Questionalert message box in update panel Pin
ships_agr19-Apr-10 7:43
ships_agr19-Apr-10 7:43 
AnswerRe: alert message box in update panel Pin
Brij19-Apr-10 8:07
mentorBrij19-Apr-10 8:07 
GeneralRe: alert message box in update panel Pin
ships_agr20-Apr-10 5:28
ships_agr20-Apr-10 5:28 
QuestionServer Error in '/' Application. Pin
Abdul-Rhman Alsri19-Apr-10 7:18
Abdul-Rhman Alsri19-Apr-10 7:18 
AnswerRe: Server Error in '/' Application. Pin
Abhijit Jana19-Apr-10 11:03
professionalAbhijit Jana19-Apr-10 11:03 
QuestionAn Issue with Databind() for a GridView Pin
PDTUM19-Apr-10 6:09
PDTUM19-Apr-10 6:09 
AnswerRe: An Issue with Databind() for a GridView Pin
PDTUM19-Apr-10 8:00
PDTUM19-Apr-10 8:00 
QuestionAssign themes programmatically - Master Pages Pin
Karan_TN19-Apr-10 4:04
Karan_TN19-Apr-10 4:04 

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.