Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Redirect after login
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Redirect after login

 Post Reply Post Reply Page  <12
Author
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2007 at 12:03pm
I would imagine there's more changes and releasing part tested code isn't in anyone's intrest, just be patient for a little while as the beta of version 9 is due asap
Handyman man?
Back to Top
Brandt View Drop Down
Newbie
Newbie


Joined: 30 January 2006
Location: Netherlands
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brandt Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2007 at 9:16pm
Using the suggestion made in http://forums.webwiz.net/forum_posts.asp?TID=22277 I've now got the required behaviour, i.e. after logging in you get the topic displayed and not the default forum page. The mod I've made is that I've not used the HTTP_REFERER variable (as that points to the page containing the link to the topic and not the forum topic itself, due the the redirect) but added

        Session("FeedBackURL") = "forum_posts.asp?TID=" & lngTopicID
 
just before the redirect to insufficient_permission.asp in file forum_posts.asp
Back to Top
ForumDummy View Drop Down
Groupie
Groupie


Joined: 04 December 2006
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote ForumDummy Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2007 at 1:52am
Originally posted by Brandt Brandt wrote:

The mod I've made is that I've not used the HTTP_REFERER variable (as that points to the page containing the link to the topic and not the forum topic itself, due the the redirect) but added        Session("FeedBackURL") = "forum_posts.asp?TID=" & lngTopicID just before the redirect to insufficient_permission.asp in file forum_posts.asp


I am not clear on your code is supposed to go. Which file should this go into and where in the file would I place it?:

Session("FeedBackURL") = "forum_posts.asp?TID=" & lngTopicID

So, does doing this bring you back to the forum the topic is in instead of the topic itelf?

What I am trying to do is redirect the user back to the page they were on prior to being presented with a login screen.

Back to Top
Brandt View Drop Down
Newbie
Newbie


Joined: 30 January 2006
Location: Netherlands
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brandt Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2007 at 8:52am
If you send somebody a link to a topic (which looks like http://www.yoursite.com/forum/forum_posts.asp?TID=123), and that forum requires you to login, you unfortunately end up in default.asp after you've loged in. This also happens on this site. I find this not very user-friendly. I want the user to get the topic displayed, after he has provided username and password.
Therefore, I've added the above code in the file forum_posts.asp, just before the line where the redirection to insufficient_permission.asp is; somewhere around line 305.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.