Solved

Simple asp session tutorial with sample code [working]

Posted on 2011-09-23
10
290 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
Comment Utility
pl check the following tutorial
http://www.w3schools.com/asp/asp_sessions.asp
0
 

Author Comment

by:n0ttytechy
Comment Utility
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
Comment Utility
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
Comment Utility
Awesmome man. I am highly impressed by your asp site (with ajax interaction) and the simplicity
0
 

Author Comment

by:n0ttytechy
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 30

Expert Comment

by:Wayne Barron
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

14 Experts available now in Live!

Get 1:1 Help Now