Spooky Log in question (Full Version)

All Forums >> [Web Development] >> ASP, PHP, and Database



Message


mjmtravel -> Spooky Log in question (6/4/2009 10:57:58)

I have a spooky log in question I'm hoping someone can answer for me. I know its no longer on the forum.
It is the lower version also, not professional.
When someone registers they get sent a email that looks like this and it works fine:

Hello Bob,

Thank you for registering with xxxxxx.net!
Here are your login details.

Username = sunshine
Password = suitless

To enable your account and make it active, you will need to login here :

http://xxxxxxxx.net/index.asp?U1=sunshine&UID=3349393

Welcome aboard,

My problem is if they loose the email or delete it or goes to junk and is deleted I resend them the template in the spooky email section for invalid users. All of this works fine except when I send the template email its missing the UID=3349393 and looks like this:

Hello Trevor,

Thank you for registering with xxxxxxxx.net!
Here are your login details.

Username = sunshine
Password = suitless

To enable your account and make it active, you will need to login here :

http://xxxxxxxxxx.net/index.asp?U1=sunshine ??????

Welcome aboard,


The template uses [login_url] for the link but its missing the UID number. Any help would be appreciated.

Thanks




Spooky -> RE: Spooky Log in question (6/4/2009 15:39:31)

Correct it doesnt add that currently. The best option at this point would be to enable the account and then resend the email. The reason being you now know its a valid user?




mjmtravel -> RE: Spooky Log in question (6/8/2009 19:14:53)

Spooky one more question if you would be so kind. How can I extend the users log in time. I have a long property form for the customer to fill out and it takes some time.
I have changed the time already in your settings at
Const l_log_timeout = 2400.

I still have it timing out in about 10 minutes. Is there something else I can look at or is it on my host side.

Thanks a lot.




Spooky -> RE: Spooky Log in question (6/9/2009 3:07:39)

You could add in cookie protection for that page? Sessions can be unreliable (and a pita) for forms that rely on the user to enter in a timely manner.

eg:
If Session("UserName")&"" = "" OR Request.cookies(cookie_name)("T1aUs")&""="" Then




mjmtravel -> RE: Spooky Log in question (6/9/2009 10:59:07)

Spooky

I'm very unsure how a cookie works. I have the use cookies box check in the settings and I have this at the top of the pages. Are you saying to replace that session or add to the current one and what would be the cookie name?

Sorry for the ignorance on this one.

<%
If Session("UserName")&"" = "" Then
Response.redirect "/index.asp?Redirect=" &Request.Servervariables("URL")
End if
%>


<%If Session("UserName")&"" = "" OR Request.cookies(cookie_name)("T1aUs")&""="" Then%>




Spooky -> RE: Spooky Log in question (6/9/2009 17:10:23)

The cookie name is dependant on what was set in a_config. By default, its :

Const cookie_name = "Spooky"

So :

<% 
If Session("UserName")&"" = "" AND Request.cookies("Spooky")("T1aUs")&""="" Then
Response.redirect "/index.asp?Redirect=" &Request.Servervariables("URL") 
End if 
%> 





mjmtravel -> RE: Spooky Log in question (6/10/2009 8:01:04)

Spooky
Thank you very much, I'll give that a try. As always, you are the MAN!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.140625