Solved

Simple asp session tutorial with sample code [working]

Posted on 2011-09-23
10
291 Views
Last Modified: 2013-05-11
Hi

I need to know a simple amd comprehensive asp code that shows demo for asp session. for e.g. if a user is looged in then display page1.asp if not redirect t login page.

Does anyone have tutorials on this?

Considering session with cookies and without cookies
1. which is preferred to use (with cookies or without or handle both cases)
0
Comment
Question by:n0ttytechy
10 Comments
 
LVL 22

Expert Comment

by:Om Prakash
ID: 36585663
pl check the following tutorial
http://www.w3schools.com/asp/asp_sessions.asp
0
 

Author Comment

by:n0ttytechy
ID: 36585757
oh thanks. i already read the tutorial before asking the question.

I am after a proper/complete tutorial like the following:
http://www.asptutorial.info/learn/Session_Application.html

but after copy pasting the code. i get a 404 error. the code does not seem to work.

if somone can suggest me the problem in the code at the link http://www.asptutorial.info/learn/Session_Application.html

or can help me get a similar tutorial with code doing same stuff.
0
 
LVL 30

Accepted Solution

by:
Wayne Barron earned 500 total points
ID: 36585786
Have a look here, a made for EE Login script by me.
http://www.cffcs.com/Main.asp?Entry=20
Demo Page --> http://www.cffcs.com/Tutorials/carrzkiss/20/login.asp
Register on site to download the code.

This is what I use on all my sites, works like a charm and is highly recommended by EE users and around the internet.

Carrzkiss
0
 

Author Closing Comment

by:n0ttytechy
ID: 36585847
Awesmome man. I am highly impressed by your asp site (with ajax interaction) and the simplicity
0
 

Author Comment

by:n0ttytechy
ID: 36585852
carrzkiss: thanks heaps. exactly what i was looking for. tbh, i am really impressed by your website and the tutorials.

P.s. you should consider color combination but otherwise i am in love with your website.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 30

Expert Comment

by:Wayne Barron
ID: 36585983
What do you mean by Color combination.
Always up for improvements, besides, it gives me something to do every once in a while.

And yes, I love my site, it was in the works for over 4 years, and last year I finally put it up.

All the AJAX/JQuery Codes, are converted from PHP to ASP Classic.
I am getting ready to do another conversion probably this weekend.
If it is something that I like, I convert it.

Take Care
Carrzkiss
0
 

Author Comment

by:n0ttytechy
ID: 36586371
ohh by color combination i meant there are certain sections on the site such as black bg and whte fonts or white bg and grey fonts with smaller size. Sometimes they can be really hard (very bright and inconvenient) to read. thats all.  but thats just a minor thing.
0
 

Expert Comment

by:EvertJor
ID: 39158432
Hi Carrzzkiss.

Where is the source code for the login scripts that you mention on the linked page?
I only get an 0126 asp-error page.

Waiting for your response. Have a nice day.
0
 
LVL 30

Expert Comment

by:Wayne Barron
ID: 39158718
Hello EvertJor
What page are you referring to that is giving you that error?
Please provide a link.

As for where the code is at, it is the links I provided.

http://www.cffcs.com/Main.asp?Entry=20
Demo Page --> http://www.cffcs.com/Tutorials/carrzkiss/20/login.asp
Register on site to download the code.

Unless you are referring to something else.
0
 
LVL 30

Expert Comment

by:Wayne Barron
ID: 39158722
Never caught on to that error.
Everything else was tested on the new site layout except for that.

Thanks for bringing it to my attention, it is resolved, and you should be able to download the project files and other available files as well.

Thanks  EvertJor
Carrzkiss
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Leverage browser caching 2 55
Adding items to html ul from on server side. 4 55
SP to delete duplicates 15 62
wordpress display sub menu only when click 12 23
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now