Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: Class Library / name space Question Pin
gmhanna19-May-09 4:56
gmhanna19-May-09 4:56 
AnswerRe: Class Library / name space Question Pin
musefan19-May-09 4:53
musefan19-May-09 4:53 
QuestionHex Strings to Integer Pin
gmhanna19-May-09 4:39
gmhanna19-May-09 4:39 
AnswerRe: Hex Strings to Integer Pin
Luc Pattyn19-May-09 4:47
sitebuilderLuc Pattyn19-May-09 4:47 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 4:49
musefan19-May-09 4:49 
AnswerRe: Hex Strings to Integer Pin
musefan19-May-09 4:47
musefan19-May-09 4:47 
AnswerRe: Hex Strings to Integer Pin
gmhanna19-May-09 4:59
gmhanna19-May-09 4:59 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 5:00
musefan19-May-09 5:00 
GeneralRe: Hex Strings to Integer Pin
Luc Pattyn19-May-09 5:06
sitebuilderLuc Pattyn19-May-09 5:06 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 5:10
musefan19-May-09 5:10 
GeneralRe: Hex Strings to Integer Pin
Nagy Vilmos19-May-09 5:13
professionalNagy Vilmos19-May-09 5:13 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 5:28
musefan19-May-09 5:28 
QuestionHelp! implementing user session timeout in winform c#2.0 Pin
highjo19-May-09 4:03
highjo19-May-09 4:03 
AnswerRe: Help! implementing user session timeout in winform c#2.0 Pin
Noctris19-May-09 6:38
Noctris19-May-09 6:38 
Hi there,

Although your idea is not bad, i find it a rather strange way of doing an expired session...

what i would do ( although i am no coding god either so feel free to correct me)

For example you want your session to be valid for 15 Minutes:

You simply make a Session variable like:

session.Item("expirationtime") = DateTime.Now().AddMinutes(15)
then, on every call you make that is < session.Item("expirationtime") , you set this again

if(session.item("expirationtime") < DateTime.Now())
{
// redirect the user back to the login page

}

Seems a hell of a lot simpler and has better performance then spinning of threads to keep timers ticking.. (500 visitors logged in means 500 threads running a timer)

Do Or Don't, there is no "try catch ex as exception end try"

GeneralRe: Help! implementing user session timeout in winform c#2.0 Pin
highjo21-May-09 1:13
highjo21-May-09 1:13 
QuestionC# Question time! Pin
Matt Cavanagh19-May-09 3:44
Matt Cavanagh19-May-09 3:44 
AnswerRe: C# Question time! Pin
molesworth19-May-09 3:51
molesworth19-May-09 3:51 
GeneralRe: C# Question time! Pin
OriginalGriff19-May-09 4:43
mveOriginalGriff19-May-09 4:43 
GeneralRe: C# Question time! Pin
molesworth19-May-09 4:49
molesworth19-May-09 4:49 
GeneralRe: C# Question time! Pin
Nagy Vilmos19-May-09 5:00
professionalNagy Vilmos19-May-09 5:00 
GeneralRe: C# Question time! Pin
harold aptroot19-May-09 5:16
harold aptroot19-May-09 5:16 
GeneralRe: C# Question time! Pin
molesworth19-May-09 5:36
molesworth19-May-09 5:36 
AnswerRe: C# Question time! Pin
musefan19-May-09 3:54
musefan19-May-09 3:54 
GeneralRe: C# Question time! Pin
Matt Cavanagh19-May-09 11:44
Matt Cavanagh19-May-09 11:44 
AnswerRe: C# Question time! Pin
PIEBALDconsult19-May-09 4:10
mvePIEBALDconsult19-May-09 4:10 

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.