logon pages - still

M

melissa

http://melissarawlings.co

I don't think I got an answer on this - then the service went down...anyone got any advice

Go to View your pictures link on home page. Go to Password-protected page. Logon as 'testuser' - the password is 'password

I can't figure out what my problem is once you hit logon, it is supposed to redirect to a page saying you are logged on as testuser...once you get the error page, you can hit back a couple times and there it is sometimes. I am not knowledgeable in code writing, can someone help me out?
 
C

Cowboy \(Gregory A. Beamer\)

The redirected page sets the session variable? If so, you need to check the
user and set the session("loggedin") value (or whatever you are using) and
then the other page should show you are logged in. You cannot check a
session variable, in ASP, right after it is set. Session variables go into
the server cookie and are not retrievable until the next hit (where the
cookie is read by the server).

This is a wild guess, but very common with ASP.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
melissa said:
http://melissarawlings.com

I don't think I got an answer on this - then the service went down...anyone got any advice?

Go to View your pictures link on home page. Go to Password-protected page.
Logon as 'testuser' - the password is 'password'
I can't figure out what my problem is once you hit logon, it is supposed
to redirect to a page saying you are logged on as testuser...once you get
the error page, you can hit back a couple times and there it is sometimes. I
am not knowledgeable in code writing, can someone help me out?
 
M

MD Websunlimited

Is a URL suppose to be supplied to the log-in page?


--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
J-Bots Plus 2002 87 components for FrontPage
http://www.websunlimited.com/order/Product/JBP2002/jbp_help_dir.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible

melissa said:
http://melissarawlings.com

I don't think I got an answer on this - then the service went down...anyone got any advice?

Go to View your pictures link on home page. Go to Password-protected page. Logon as 'testuser' - the password is 'password'

I can't figure out what my problem is once you hit logon, it is supposed to redirect to a page saying you are logged on as
testuser...once you get the error page, you can hit back a couple times and there it is sometimes. I am not knowledgeable in code
writing, can someone help me out?
 
B

Bob Lehmann

<<<<You cannot check a session variable, in ASP, right after it is set. >>>>

Maybe I'm misunderstanding, but if you do this....

<%
Session("val") = "val"
Response.Write len(Session("val"))
%>

"3" is written to the browser.

Bob Lehmann
 
J

Jon Spivey

Hi Melissa

Very nice looking site.

Think I see what's wrong here - I click View Pictures then Password
Protected Page Logon and then get a missing url error. If I then type the
url http://melissarawlings.com/logon/ it correctly says logged on as
testuser. So your logon system is obviously working.

On logon.asp you should have some code like this
<%
response.redirect "/logon/default.asp"
%>

This would redirect after the user has logged on. I think in your code you
have response.redirect but you're missing the url - look through your
logon.asp code for the words response.redirect and replace it with
response.redirect "/logon/default.asp". If that doesn't work for you we'll
need to see the code itself so copy and paste it into a message
 
M

melissa

I will try that tonight. Thanks a lot for the help

----- Jon Spivey wrote: ----

Hi Meliss

Very nice looking site

Think I see what's wrong here - I click View Pictures then Passwor
Protected Page Logon and then get a missing url error. If I then type th
url http://melissarawlings.com/logon/ it correctly says logged on a
testuser. So your logon system is obviously working

On logon.asp you should have some code like thi
<
response.redirect "/logon/default.asp
%

This would redirect after the user has logged on. I think in your code yo
have response.redirect but you're missing the url - look through you
logon.asp code for the words response.redirect and replace it wit
response.redirect "/logon/default.asp". If that doesn't work for you we'l
need to see the code itself so copy and paste it into a messag

-
Cheers
Jo
Microsoft MVP - F


melissa wrote
 
C

Cowboy \(Gregory A. Beamer\)

Apologies. I often make assumptions based on the work being done. From what
you have started, I assumed you knew a bit more about the programming side
(backhanded complement). If Spivey's recommendation does not solve the
problem, post again and we can work you through some additional steps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
melissa said:
Thanks for the advice, though I have no idea what all that means. I am new
to web design and do not know code, I just copied a template from microsoft
for a logon site. It contained 4 pages and had all the code pre-written.
 
Top