Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: position of cursor in Text Box? Pin
superdragon13-Mar-06 11:55
superdragon13-Mar-06 11:55 
QuestionGridView link with two data???? Pin
papa198013-Mar-06 3:29
papa198013-Mar-06 3:29 
QuestionCreate a very big PictureBox Pin
Sasuko13-Mar-06 2:31
Sasuko13-Mar-06 2:31 
QuestionFolderBrowserDialog Problem in C# Pin
AyBee13-Mar-06 2:24
AyBee13-Mar-06 2:24 
AnswerRe: FolderBrowserDialog Problem in C# Pin
J4amieC13-Mar-06 4:05
J4amieC13-Mar-06 4:05 
AnswerRe: FolderBrowserDialog Problem in C# Pin
vineas13-Mar-06 4:18
vineas13-Mar-06 4:18 
AnswerRe: FolderBrowserDialog Problem in C# Pin
Ed.Poore13-Mar-06 6:29
Ed.Poore13-Mar-06 6:29 
QuestionCookie and ticket expiration Pin
Brendan Vogt13-Mar-06 1:47
Brendan Vogt13-Mar-06 1:47 
Hi all!!

I a bit confused on the expiration of a ticket, and a cookie.

I have the following code:

FormsAuthenticationTicket objTicket = new FormsAuthenticationTicket(
1, // version
Context.User.Identity.Name, // username
DateTime.Now, // issue date
DateTime.Now.AddHours(1), // expires every 1 hour
false, // don't persist cookie
strMemberRoles // member roles
);

And...

Response.Cookies["myCookie"].Expires = DateTime.Now.AddMinutes(5);

What happens if the user uses the site for exactly 1 hour and 1 minute. This means that the ticket and cookie has not expired? Does the cookie only expire 5 minutes of being on a page that hasn't been used for 5 minutes?

If the ticket only expires after an hour, what is the use of assigning it so long if the cookie expires after 5 minutes?

Please can someone help me!!

Regards,
ma se
Questionaccessing xml file Pin
rah_sin13-Mar-06 1:21
professionalrah_sin13-Mar-06 1:21 
AnswerRe: accessing xml file Pin
darkelv13-Mar-06 12:59
darkelv13-Mar-06 12:59 
Questionlock columns's size Pin
sebastianos13-Mar-06 1:11
sebastianos13-Mar-06 1:11 
QuestionRegular expression string Pin
Brendan Vogt13-Mar-06 0:51
Brendan Vogt13-Mar-06 0:51 
AnswerRe: Regular expression string Pin
leppie13-Mar-06 1:09
leppie13-Mar-06 1:09 
GeneralRe: Regular expression string Pin
Brendan Vogt13-Mar-06 1:50
Brendan Vogt13-Mar-06 1:50 
GeneralRe: Regular expression string Pin
leppie13-Mar-06 7:38
leppie13-Mar-06 7:38 
QuestionStatic Constructor Problem Pin
Suhas Pawar13-Mar-06 0:46
Suhas Pawar13-Mar-06 0:46 
AnswerRe: Static Constructor Problem Pin
gnjunge13-Mar-06 0:52
gnjunge13-Mar-06 0:52 
QuestionListBox Pin
Monin D.12-Mar-06 23:47
Monin D.12-Mar-06 23:47 
AnswerRe: ListBox Pin
gnjunge13-Mar-06 0:19
gnjunge13-Mar-06 0:19 
GeneralRe: ListBox Pin
Monin D.13-Mar-06 0:45
Monin D.13-Mar-06 0:45 
GeneralRe: ListBox Pin
gnjunge13-Mar-06 0:47
gnjunge13-Mar-06 0:47 
QuestionPlease introduce me a dll or windows application to send email.... Pin
m.rastgar12-Mar-06 23:40
m.rastgar12-Mar-06 23:40 
AnswerRe: Please introduce me a dll or windows application to send email.... Pin
Colin Angus Mackay12-Mar-06 23:46
Colin Angus Mackay12-Mar-06 23:46 
AnswerRe: Please introduce me a dll or windows application to send email.... Pin
Vasudevan Deepak Kumar13-Mar-06 0:13
Vasudevan Deepak Kumar13-Mar-06 0:13 
Questionhow can i tracks a server's response times and records the results .... Pin
JulietPlando12-Mar-06 23:36
JulietPlando12-Mar-06 23:36 

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.