Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Integrating the login page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Integrating the login page

 Post Reply Post Reply Page  <123>
Author
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 3:54am

i got that on Beta 4

when i fix it, ill let ya know

*edit*

oh i didnt notice this

<input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />

this might mean ya'll have to include the "common" file onto your page

or figure out how to find the SessionID

you could, if you wanted also include the "log me in automatically" aswell

like i said, ill let ya know when i fix mine



Edited by Scotty_32
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 11:02am

ight

like i said i would

you have to include the bit in read.

its to stop ya gettin hacked i guess - so the login page knows its login ya in from your site - and not sum hackers

anyway - i put that into my site and it worked stright off

for the username field put name="name" and for the password put name="password" and it should work

so you go to the page you came from i put this in my login page on my site:

<%
Dim Return

return = Request.ServerVariables("SCRIPT_NAME") & "?" & Request.ServerVariables("QUERY_STRING")
%>

<form action="/forum/login_user.asp?return=<%=Return%>" method="post" name="forum">

then on the login page of the forum i put:

Response.Redirect(request.querystring("return"))

on line 165 so it takes you back to ya page  enjoy

(hay does this class as a "Mod" and do i get a lil "Mod" Group thing )

 

Back to Top
jabbasabba View Drop Down
Groupie
Groupie
Avatar

Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote jabbasabba Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 11:35am

Did I get this right now?

This is my default.asp:

<%
Dim Return

return = Request.ServerVariables("SCRIPT_NAME") & "?" & Request.ServerVariables("QUERY_STRING")
%>

    <form action="login_user.asp?return=<%=Return%>" name="frmLogin" method="post" onSubmit="return CheckForm();">
    <td valign="bottom">
 <input type="text" name="name" class="input" maxlength="15">
    </td>
    <td valign="bottom">
 <input type="password" name="password" class="input" maxlength="15">
    </td>
    <td valign="bottom">
 <input type="submit" value="Logga in" class="knapp">
    </td>
    </form>

This is the login_user.asp on line 165:

Response.Redirect(request.querystring("return"))

This isnīt working for me. I get the same error answer



Edited by jabbasabba
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 12:02pm

ya put in the hidden field right?

<input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />

if ya didnt then it wouldnt of worked since the Login page checks your Session, just put that in and it will work

(by the way, ya using version 7 beta 4 right?  since this was made for beta 4)

Back to Top
jabbasabba View Drop Down
Groupie
Groupie
Avatar

Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote jabbasabba Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 2:35pm

Thank You, Thank You!

Now it works. As you sad Iīve forgotten the hidden input field.

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 2:47pm

if ya wanna have a "Member Area" ony for the forum members - let me know and ill let give ya sum code i did

 come on borg, ya know ya wanna make me a Mod Builder!

Back to Top
jabbasabba View Drop Down
Groupie
Groupie
Avatar

Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote jabbasabba Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 3:02pm

A "Member Area" sounds interesting! Right now I have "hidden" Forum Categories for members in a group. Thatīs a sort of a "Member Area".

But tell me more...

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 3:05pm

i mean like not to do wit the forum

umm like.... umm well wots ya site about?

like you could have member links (only show if they signed in)

like you could have a gallery for members only, and umm i dunno just stuff you dont want guests to see - you could even have it so only moderators and other "groups" can see the pages

all you do is put in a lil thin like

if memberlevel = "0" then
   response.redirect("noaccess.asp")
end if

and it will stop people seein the page if they aint loged in, but it depends wot ya sites about if ya need to use this or not

Back to Top
 Post Reply Post Reply Page  <123>

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.