Answered by:
Logout Link

Question
-
Hi
I want to have logout link / at the right conrner of my application , clicking on this link should redirect me to login screen. Can this be achieved in LightSwitch ?
Please help.
Regards
Goldy
Saturday, August 27, 2011 7:40 AM
Answers
-
- Proposed as answer by JaimeH Saturday, August 27, 2011 7:31 PM
- Marked as answer by Justin AndersonMicrosoft employee, Moderator Tuesday, September 20, 2011 4:28 AM
Saturday, August 27, 2011 7:51 AMModerator
All replies
-
- Proposed as answer by JaimeH Saturday, August 27, 2011 7:31 PM
- Marked as answer by Justin AndersonMicrosoft employee, Moderator Tuesday, September 20, 2011 4:28 AM
Saturday, August 27, 2011 7:51 AMModerator -
Hi Yann
Thanks for the reply. I assume but the solution provided in the link would only work in browser apps. I have doubt whether it will work out of browser. What are your thoughts for the same ?
Regards
Thursday, September 29, 2011 12:04 PM -
I guess that's why it's called it "How To: Create a Logout Button For LightSwitch Web Apps", lol.
And the first line says "Problem: You are using Forms authentication and you'd like to add a "Logout" Button to your LightSwitch browser apps.".
But yes, I agree, I don't think it works for OOB apps. I don't remember if I tried it.
That's also why I make the "Log Off" command in my Luminous LightSwitch Commands extension invisible for OOB apps.
(plus ça change, plus c'est la même chose!)
If you found this post helpful, please "Vote as Helpful". If it actually answered your question, remember to "Mark as Answer".
This will help people find the answers that they're looking for more quickly.
Thursday, September 29, 2011 2:12 PMModerator -
Hi Yann. When I use the Log Off button I get this error. Any ideas?
Server Error in '/' Application.
The resource cannot be found.
- "Five is right out!" Please mark as answered if this answers the question :-)Wednesday, October 19, 2011 1:59 AM -
Are you following the article linked above? Or using my Luminous LightSwitch Commands? The article's not mine, but it is the basis for my LogOff command.
A couple of people who aren't using IE have mentioned this problem in the Q&A page for the extension, but I haven't had time to look at it yet.
What broswer are you using?
(plus ça change, plus c'est la même chose!)
If you found this post helpful, please "Vote as Helpful". If it actually answered your question, remember to "Mark as Answer".
This will help people find the answers that they're looking for more quickly.
Wednesday, October 19, 2011 3:13 AMModerator -
LLCommands gives error. Browser is IE 9. tia
- "Five is right out!" Please mark as answered if this answers the question :-)Thursday, October 20, 2011 2:36 AM -
Hmm, you're the first one (that I know of) that's had this problem with IE.
I WILL get it sorted out, I just have to get the book finished first, before I'll get much of a chance to investigate why it's happening.
(plus ça change, plus c'est la même chose!)
If you found this post helpful, please "Vote as Helpful". If it actually answered your question, remember to "Mark as Answer".
This will help people find the answers that they're looking for more quickly.
Thursday, October 20, 2011 6:40 AMModerator -
Yann is there anyway to override the code so i can capture a logoff event ?
Martin
martinThursday, October 20, 2011 1:29 PM -
What do you mean by "capture a logoff event"?
If you're asking about disabliing the ribbon button, or hiding it altogether, then yes, I described a method in another post.
(plus ça change, plus c'est la même chose!)
If you found this post helpful, please "Vote as Helpful". If it actually answered your question, remember to "Mark as Answer".
This will help people find the answers that they're looking for more quickly.
Thursday, October 20, 2011 1:42 PMModerator -
Sorry Yann I didnt quite explain properly.
When a user logs off I want to set a field value to logged off .
Basically what I am looking to achieve is to be able to identify all users logged on/logged off to the application.
Martin
t
martinThursday, October 20, 2011 3:27 PM -
Hello Martin,
did you capture the log off event? , because i'm trying to do so now , but I'm not able to find the event to put my code in , kindly waiting for your reply.
Sunday, February 16, 2014 6:38 PM