Project

General

Profile

Login Not Syncing Properly

Added by Jennifer Bailey almost 8 years ago

I have a project where I have a function for checking whether or not you are logged in and displaying different results accordingly. My problem is that it is displaying the logged out data before it logs the user in automatically from the Witty cookie. Can someone tell me how I can resolve this? Thanks

Here's the functions code:

void authEvent() {

if (session_.login().loggedIn())

{

Wt::WText *TestText = new Wt::WText("YOU ARE LOGGED IN", this);

}

else

Wt::WText *TestText2 = new Wt::WText("YOU ARE LOGGED OUT", this);

}


Replies (1)

RE: Login Not Syncing Properly - Added by Jennifer Bailey almost 8 years ago

Sorry guys ignore this post I fixed it, I was asking my program to launch my function before processing the login environment.

    (1-1/1)