Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 650713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:04:59+00:00 2026-05-13T22:04:59+00:00

I am developng Smart device application in C#. It is a window application. In

  • 0

I am developng Smart device application in C#. It is a window application. In this application I am using Login form to authenticate the users. Only authenticated users can login into the system. I using statc variables in this application so that they can be used at application level. After deploying the application I can see that emulator provides the close button with multiplicaton symbol. In this way I can close my form as well as application. But I want to provde one logout link in my application. Can I provide logout functionality in C# window applicain ? If yes, how to do that ? Please make sure that all the functions of .net framework does not work with .net compact framwork? Can you provide me the code or link through which can resolve the above issue ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:04:59+00:00Added an answer on May 13, 2026 at 10:04 pm

    This will depend on what logging in actually does in your system. You may just need to clear those static variables (set them to null) – and make sure that everywhere you use them, you test for nullity first so you can detect logout. Alternatively, you may need to explicitly expire your session with the server. We don’t really have enough information to go on.

    If you’re in control of the server as well (I’m assuming there is a server somewhere) it would be good to either make it stateless (so there’s no “session” to speak of) or make the session time out automatically – bear in mind that on a mobile device, the connection may well be intermittent; you don’t want to leave expensive resources hanging around when the user has no way of telling the server that they’re finished.

    I can’t really provide any code for this, as you haven’t told us any information which would really suggest any code. If you give more information about what you’re logging into etc, we may be able to help more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developng Smart device application in C#. It is a window application. In
I am developing smart device application in C#. It is a window application. In
I am developing smart device application in C#. I am developing this application for
I am developing smart device application in C#. I am able to add the
I am developing smart device application in C#. I am able to add the
I am developing smart device application in C#. In that I am calling the
I am developing smart device application in C#. In that I am calling the
I am developing the smart device application. There are different screen resolution for different
I am develpoing smart device application in C#. I want the exact path of
I am developing smart device application in C#. When I deploy my application on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.