Skip to main content
August 21, 2006
Question

Asp Cookie

  • August 21, 2006
  • 2 replies
  • 469 views
I am having and issue with an .asp page that was built in Dreamweaver that is used to log users in to the website it logs the users in just fine but when they click on a page that is restricted to just registered users, it logs them out and makes them sign back in, I am not sure how to fix this issue I have tired everything I can think of to correct this problem, the website is almost done the only thing holding it up this one issue. Any help would be great.
This topic has been closed for replies.

2 replies

Inspiring
August 21, 2006
If you are using the standard login behaviour it creates a session variable
called MM_UserName. It sounds like something is stopping this from being
set. An easy way to prove this is to create a new page and simply place the
following code on it

<%=session("MM_UserName")%>

Then after you have logged in, go the page and see if anything appears.


--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"the_mann245" <webforumsuser@macromedia.com> wrote in message
news:ecd59s$d1f$1@forums.macromedia.com...
>I am having and issue with an .asp page that was built in Dreamweaver that
>is
> used to log users in to the website it logs the users in just fine but
> when
> they click on a page that is restricted to just registered users, it logs
> them
> out and makes them sign back in, I am not sure how to fix this issue I
> have
> tired everything I can think of to correct this problem, the website is
> almost
> done the only thing holding it up this one issue. Any help would be
> great.
>


Inspiring
August 21, 2006
Yes

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"the_mann245" <webforumsuser@macromedia.com> wrote in message
news:ecdcf1$ldl$1@forums.macromedia.com...
> Ok paul does that work with Dreamweaver 8 cause that is what i am using


August 22, 2006
The code that I gave you does not appear anywhere on the log in page. It was
designed to be placed on a new page. Then after you have logged in, you
would call the page to see if anything appeared. If it did not then the
problem would be in the way that sessions are being set.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"the_mann245" <webforumsuser@macromedia.com> wrote in message
news:ecdekq$nrv$1@forums.macromedia.com...
> Yeah this line <%=session("MM_UserName")%> is not anywhere on the login
> page
> and I set the connection up using the standard way. I am not sure if it
> makes
> a difference that the Database was written in an Access 2000 format. so
> where
> would that line of code need to go and does it need to go on every page
> that is
> restricted. Sorry for all the questions this is the frist time i have
> connected a DB to a website.
>



Ok i got the pages to work but only if i set the restriction to just the username and password and not the level box. And this <%=session("MM_UserName")%> did not do anything really cause i took it out and the page still works with the username and the password set but once the level is set everything stops and that code doesnt even correct that problem. The person that page is being built for wants restirction on based on the database so they can approve who an see the website and who cant see it. oh u can also get a hold of me on yahoo at the_mann245 if that is easier.
Inspiring
August 21, 2006
an url would help, the code that's making it perform this way woudl be
better.

don't forget to change your recordset names, etc.

hth,

jon

"the_mann245" <webforumsuser@macromedia.com> wrote in message
news:ecd59s$d1f$1@forums.macromedia.com...
>I am having and issue with an .asp page that was built in Dreamweaver that
>is
> used to log users in to the website it logs the users in just fine but
> when
> they click on a page that is restricted to just registered users, it logs
> them
> out and makes them sign back in, I am not sure how to fix this issue I
> have
> tired everything I can think of to correct this problem, the website is
> almost
> done the only thing holding it up this one issue. Any help would be
> great.
>


August 21, 2006
The url for the site is Turcich.info there is a login form on that page and the database is written in access 2000.