Hi This Satani Ketan , My Question is i am Making A login Form using c# windows application..so i have to use session and coockies in my form..that provide me how much time spent by user after logout....can any one help me..
thanks in advance...!!!

Recommended Answers

I'm confused... you developing in Windows Forms with C#? Is that it?
If it is, then there's no cookies or sessions. You can just hold the login date on the main form of you app.

Why is this tagged with c,c++, java, pascal, python and vb.net? Please give correct information …

Jump to Post

All 2 Replies

I'm confused... you developing in Windows Forms with C#? Is that it?
If it is, then there's no cookies or sessions. You can just hold the login date on the main form of you app.

Why is this tagged with c,c++, java, pascal, python and vb.net? Please give correct information so people can help better.

commented: Good note about the tags. +6

If you are wanting to see how long somebody was logged into your applications, record the log-in time in a variable that will survive the life of your application (in a module or main form) and when the user logs out, use DateDiff to determine the time that the user was logged in. You can then display it using Date.Format or something similar.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.