Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 10-15-2004, 04:10 AM Security
frik's Avatar
Average Talker

Posts: 26
Location: SOuth Africa
Trades: 0
I have a login page, it is redirected to an login check page. If the logon is not sucessfull the user or rather the page is redirected back to the original login page with a message. If the login is sucessfull then the page is redirected to a statistic page were the user then can view certain stats.

After uploading when typing eg http://aaa.com/stats.asp all the stats all the users is dispalyed. How can I prevent this.
frik is offline
Reply With Quote
View Public Profile Visit frik's homepage!
 
 
Register now for full access!
Old 10-28-2004, 10:08 AM
pencer's Avatar
Extreme Talker

Posts: 179
Location: Nottingham UK
Trades: 0
Yours stats.asp page needs to check whether the person trying to view it has logged in, if they haven't it should redirect them to your login page.

To do this you can use cookies or session variables, theres lots of free scripts out there to help you do this.
Try a quick search on Google, if your still stuck pm me.
__________________
Upto 90% of all home computers are infected with Spyware.
Please login or register to view this content. Registration is FREE


Making money online is easy when you know
Please login or register to view this content. Registration is FREE

pencer is offline
Reply With Quote
View Public Profile Visit pencer's homepage!
 
Old 10-28-2004, 12:30 PM
melfan's Avatar
Skilled Talker

Posts: 90
Trades: 0
on you login page set the following sessions:

'Check if already login
If Session("username")="" Then
Session("username")="VisitorUserName"
Session.Timeout=30 'in minutes
Else
response.redirect("stats.asp")
End if



On your stats page insert these code on top:

If Session("username")="" Then
response.redirect("login.asp")
Else
Display Stats Belongs to Session("username") value
End If
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
melfan is offline
Reply With Quote
View Public Profile Visit melfan's homepage!
 
Reply     « Reply to Security
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16874 seconds with 12 queries