Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Redirecting to another page on Logoff
pspeirs
#1 Posted : Thursday, 2 June 2011 7:20:47 AM(UTC)
Rank: Member

Joined: 6/01/2011(UTC)
Posts: 20

Hi all,
I have GSP set up such that anyone can browse the galleries, and have it integrated into my own website. I have hidden login controls such that the user logs in through the standard website interface and GSP uses the same aspnet user database. My issue is that when a user logs off that is currently on the page that my GSP component is embedded in, GSP throws up the login screen. I'd rather have it redirect to default.aspx for example.

Regards,
Paul
Roger Martin
#2 Posted : Thursday, 2 June 2011 7:49:44 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I think the only way to do this is through a source code modification. There is a function UserController.UserLoggedOff() that is executed for each logoff event. You can add a Redirect() there to send the user to a page of your choice.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
pspeirs
#3 Posted : Sunday, 12 June 2011 7:46:32 AM(UTC)
Rank: Member

Joined: 6/01/2011(UTC)
Posts: 20

Hi Roger,

I'm not opposed to modifying the source, however when I do that I need to remember for the next version :-) Is it possible to add to the request list, perhaps that the function reads a value from the web.config if it exists and redirects based on that value.

Regards,

Paul
sam
#4 Posted : Monday, 13 June 2011 1:23:20 AM(UTC)
Rank: Advanced Member

Joined: 5/08/2007(UTC)
Posts: 157
Location: England

pspeirs;7288 wrote:
Hi Roger,

I'm not opposed to modifying the source, however when I do that I need to remember for the next version :-) Is it possible to add to the request list, perhaps that the function reads a value from the web.config if it exists and redirects based on that value.

Regards,

Paul


i like that idea. it would also be cool to have this in the GUI.

thanks

sam
I donated. Did you?
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.