Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a desktop application in c++ on unix platform where users have to log in to the application with their username and password.I want to implement session tracking for the login period.
1. Last Login time by the user
2. restoring the desktop session in that application

I searched on google and different forums but could not get the solution for the desktop application.can anyone help me in how can I achieve that in c++?
Posted

1 solution

C#
if(running_under_kde == True) // communicate with session manager
{
provide_sm_with_save_state_callback(ss); // ss is a fnuction pointer
provide_sm_with_load_state_callback(ls); // ls is a fnuction pointer
}
 
Share this answer
 
Comments
Yeole R 14-Mar-12 9:07am    
@ Rakesh

can you please explain it to me what we are actually doing? I am a beginner.
fjdiewornncalwe 4-Apr-13 15:36pm    
1) Plagiarized from here
2) Off topic.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900