Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2006, 06:26 AM
Authorized User
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to savan_thakkar Send a message via Yahoo to savan_thakkar
Default Write .NET code in .ZIP File in place of .aspx

Hi,

The subject topic of this message may seem odd, but please check following link.

http://www.codeproject.com/html/pure..._demo_code.zip

Here, a zip file path is given in link.Now it should just download the zip file, if it exists on that location.But it checks for session.
Now my question is that, where is code for session check written??

Savan
__________________
Savan
 
Old October 7th, 2006, 11:51 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

They search for the existance of a cookie on your PC that denotes if you are logged in or not. If the cookie exists, the person can download the file, if not they display that logon screen.

hth,

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old November 2nd, 2006, 05:29 AM
Authorized User
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to savan_thakkar Send a message via Yahoo to savan_thakkar
Default

Hi,
Thanks for reply.
But the question is that where do they code for checking existance of a Cookie?

As the link is a ZIP file, even if you are not logged in.

Savan
 
Old November 2nd, 2006, 08:28 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Its server side; When you click on the link to request the download they first check to see if you are logged in, if you are you get the file, if not you get the screen to log in.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read /write from MPP file using Asp.Net C# amitsrathore General .NET 1 October 25th, 2013 03:08 AM
Where do I place the code? dotnetDeveloper ASP.NET 2.0 Basics 1 August 7th, 2008 01:06 PM
Calling .NET Assembly to write a file gp_mk SQL Server 2005 0 June 8th, 2007 04:54 AM
Ch4 Runtime Error 91 using db source code zip file Matrix_zero BOOK: Beginning Access 2003 VBA 0 March 1st, 2005 08:25 PM
transfearing code to aspx file from vb file alyeng2000 ASP.NET 1.0 and 1.1 Professional 1 December 15th, 2003 11:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.