473,385 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to Use SSL only for Login.aspx page

Hi,

I have a scenario where i need to configure only Login.aspx page to use
SSL. All other application will run on HTTP protocol. If someone can
guide me how to accomplish this. One of my idea is to keep login.aspx
page in a seperate Virtual director and apply SSL only on that
directory but i dont know if it will have an impact on session (may be
it will create two sessions due to two different virtual directories).
If some one can guide me what is best practice to accomplish it.

Regards,

BizWorld

May 24 '06 #1
6 4680
Just guide people to your HTTPS://www.YourWebsite.com/Login.aspx. Once you
have authenticated the user then redirect them to
HTTP//www.YourWebsite.com/Whereever.aspx this should work. The code to
redirect is

response.Redirect( HTTP//www.YourWebsite.com/Whereever.aspx ).

What I don't understand is way you are having them log in but then send them
to an unsecured site. Unless you are using session to validate login.

good luck

Momo

"BizWorld" <mo**********@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Hi,

I have a scenario where i need to configure only Login.aspx page to use
SSL. All other application will run on HTTP protocol. If someone can
guide me how to accomplish this. One of my idea is to keep login.aspx
page in a seperate Virtual director and apply SSL only on that
directory but i dont know if it will have an impact on session (may be
it will create two sessions due to two different virtual directories).
If some one can guide me what is best practice to accomplish it.

Regards,

BizWorld

May 25 '06 #2
Hi, momo

I'm trying to do exact the same thing, but if I used response.redirect
method, the session value got lost, such that
HTTP//www.YourWebsite.com/Whereever.aspx will not be able to let the
authorized user to access it

Is it possible to bring the session variable across from https to http? or
any suggestion to resolve this issue?

Keith
"momo" <ma***@seeourweb.com> wrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
Just guide people to your HTTPS://www.YourWebsite.com/Login.aspx. Once you
have authenticated the user then redirect them to
HTTP//www.YourWebsite.com/Whereever.aspx this should work. The code to
redirect is

response.Redirect( HTTP//www.YourWebsite.com/Whereever.aspx ).

What I don't understand is way you are having them log in but then send
them to an unsecured site. Unless you are using session to validate login.

good luck

Momo

"BizWorld" <mo**********@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Hi,

I have a scenario where i need to configure only Login.aspx page to use
SSL. All other application will run on HTTP protocol. If someone can
guide me how to accomplish this. One of my idea is to keep login.aspx
page in a seperate Virtual director and apply SSL only on that
directory but i dont know if it will have an impact on session (may be
it will create two sessions due to two different virtual directories).
If some one can guide me what is best practice to accomplish it.

Regards,

BizWorld


May 25 '06 #3
Hello Keith,

I would suggest passing the session to a hidden textbox and then retrieve it
from the unsecured page. This way no one can see the session value. It will
take two steps to do this.

When your login page authenticates a user you have to take them to another
secure page or you could use the same one. But in the page you will have a
form with a hidden textbox and a button that ask the user to click to
proceed, this button will then redirect then to the unsecure page. Then on
the unsecured page retrieve the hidden textbox value and put it into a
session and off you go.

Good luck

Momo

"Rabbit" <a@a.com> wrote in message
news:%2*****************@TK2MSFTNGP05.phx.gbl...
Hi, momo

I'm trying to do exact the same thing, but if I used response.redirect
method, the session value got lost, such that
HTTP//www.YourWebsite.com/Whereever.aspx will not be able to let the
authorized user to access it

Is it possible to bring the session variable across from https to http? or
any suggestion to resolve this issue?

Keith
"momo" <ma***@seeourweb.com> wrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
Just guide people to your HTTPS://www.YourWebsite.com/Login.aspx. Once
you have authenticated the user then redirect them to
HTTP//www.YourWebsite.com/Whereever.aspx this should work. The code to
redirect is

response.Redirect( HTTP//www.YourWebsite.com/Whereever.aspx ).

What I don't understand is way you are having them log in but then send
them to an unsecured site. Unless you are using session to validate
login.

good luck

Momo

"BizWorld" <mo**********@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Hi,

I have a scenario where i need to configure only Login.aspx page to use
SSL. All other application will run on HTTP protocol. If someone can
guide me how to accomplish this. One of my idea is to keep login.aspx
page in a seperate Virtual director and apply SSL only on that
directory but i dont know if it will have an impact on session (may be
it will create two sessions due to two different virtual directories).
If some one can guide me what is best practice to accomplish it.

Regards,

BizWorld



May 25 '06 #4
Hi, momo,

yeap, got it, will try it out! thanks very much!

Keith
"momo" <ma***@seeourweb.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello Keith,

I would suggest passing the session to a hidden textbox and then retrieve
it from the unsecured page. This way no one can see the session value. It
will take two steps to do this.

When your login page authenticates a user you have to take them to another
secure page or you could use the same one. But in the page you will have a
form with a hidden textbox and a button that ask the user to click to
proceed, this button will then redirect then to the unsecure page. Then on
the unsecured page retrieve the hidden textbox value and put it into a
session and off you go.

Good luck

Momo

"Rabbit" <a@a.com> wrote in message
news:%2*****************@TK2MSFTNGP05.phx.gbl...
Hi, momo

I'm trying to do exact the same thing, but if I used response.redirect
method, the session value got lost, such that
HTTP//www.YourWebsite.com/Whereever.aspx will not be able to let the
authorized user to access it

Is it possible to bring the session variable across from https to http?
or any suggestion to resolve this issue?

Keith
"momo" <ma***@seeourweb.com> wrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
Just guide people to your HTTPS://www.YourWebsite.com/Login.aspx. Once
you have authenticated the user then redirect them to
HTTP//www.YourWebsite.com/Whereever.aspx this should work. The code to
redirect is

response.Redirect( HTTP//www.YourWebsite.com/Whereever.aspx ).

What I don't understand is way you are having them log in but then send
them to an unsecured site. Unless you are using session to validate
login.

good luck

Momo

"BizWorld" <mo**********@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Hi,

I have a scenario where i need to configure only Login.aspx page to use
SSL. All other application will run on HTTP protocol. If someone can
guide me how to accomplish this. One of my idea is to keep login.aspx
page in a seperate Virtual director and apply SSL only on that
directory but i dont know if it will have an impact on session (may be
it will create two sessions due to two different virtual directories).
If some one can guide me what is best practice to accomplish it.

Regards,

BizWorld



May 26 '06 #5
Hi, momo

I'm sorry to bother you again, I have tried different ways to get the value
of the source page(such as request.form("hiddenLogin")), I still cannot
retrieve the hidden textbox value from the secure page, in fact seems to me
using redirect method will lost values of all controls. As I can use
querystring to passed the authenticated info. Can you tell me how can you
implement this?

Thanks in advance!
Keith
"momo" <ma***@seeourweb.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello Keith,

I would suggest passing the session to a hidden textbox and then retrieve
it from the unsecured page. This way no one can see the session value. It
will take two steps to do this.

When your login page authenticates a user you have to take them to another
secure page or you could use the same one. But in the page you will have a
form with a hidden textbox and a button that ask the user to click to
proceed, this button will then redirect then to the unsecure page. Then on
the unsecured page retrieve the hidden textbox value and put it into a
session and off you go.

Good luck

Momo

"Rabbit" <a@a.com> wrote in message
news:%2*****************@TK2MSFTNGP05.phx.gbl...
Hi, momo

I'm trying to do exact the same thing, but if I used response.redirect
method, the session value got lost, such that
HTTP//www.YourWebsite.com/Whereever.aspx will not be able to let the
authorized user to access it

Is it possible to bring the session variable across from https to http?
or any suggestion to resolve this issue?

Keith
"momo" <ma***@seeourweb.com> wrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
Just guide people to your HTTPS://www.YourWebsite.com/Login.aspx. Once
you have authenticated the user then redirect them to
HTTP//www.YourWebsite.com/Whereever.aspx this should work. The code to
redirect is

response.Redirect( HTTP//www.YourWebsite.com/Whereever.aspx ).

What I don't understand is way you are having them log in but then send
them to an unsecured site. Unless you are using session to validate
login.

good luck

Momo

"BizWorld" <mo**********@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Hi,

I have a scenario where i need to configure only Login.aspx page to use
SSL. All other application will run on HTTP protocol. If someone can
guide me how to accomplish this. One of my idea is to keep login.aspx
page in a seperate Virtual director and apply SSL only on that
directory but i dont know if it will have an impact on session (may be
it will create two sessions due to two different virtual directories).
If some one can guide me what is best practice to accomplish it.

Regards,

BizWorld



May 26 '06 #6
Rabbit,

I would not recommend passing the session info in your URL because that
would defeat the purpose of logging in. All someone would need to know is
the link and they can bypass the login page. As for why it does not work I
don't know. But I found something that might help. Try it and if it work
reply back to me and them to the post.

Here you go.

###########################################
a.. A52: At first, you should know, that if you share an unsecured session
with a secure session, you void the security of the https session, since a
network sniffer, could retrieve the cookie and use identity theft on the
https session!
However, we have made ISP Session as safe as possible for you
The steps to follow to share a session and to fix the security hole you
create by sharing a http session with https.

a.. In global.asa set Application("CookieNoSSL") = True.
b.. Just before you redirect to https set Session.ReEntrance = True, this
allows a browser to continue a session while the hostname or even the
complete URL changes.
c.. At the redirected page, you disable ReEntrance again by
Session.ReEntrance = False. If you go back to http, you should repeat the
same trick.
d.. To fix the security hole of sharing secure between unsecure (and vice
versa) you should set Session.LiquidCookie = True in Session_OnStart.
Note that you should thoroughly test your site after setting this option.
LiquidCookies causes a session key to be valid for just one page request,
after that request, a new key is automatically generated and established
with your browser! So if a browser misses just one request, the session is
lost.
#########################################
Good luck.

Momo.

"Rabbit" <a@a.com> wrote in message
news:eM**************@TK2MSFTNGP03.phx.gbl...
Hi, momo

I'm sorry to bother you again, I have tried different ways to get the
value of the source page(such as request.form("hiddenLogin")), I still
cannot retrieve the hidden textbox value from the secure page, in fact
seems to me using redirect method will lost values of all controls. As I
can use querystring to passed the authenticated info. Can you tell me how
can you implement this?

Thanks in advance!
Keith
"momo" <ma***@seeourweb.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello Keith,

I would suggest passing the session to a hidden textbox and then retrieve
it from the unsecured page. This way no one can see the session value. It
will take two steps to do this.

When your login page authenticates a user you have to take them to
another secure page or you could use the same one. But in the page you
will have a form with a hidden textbox and a button that ask the user to
click to proceed, this button will then redirect then to the unsecure
page. Then on the unsecured page retrieve the hidden textbox value and
put it into a session and off you go.

Good luck

Momo

"Rabbit" <a@a.com> wrote in message
news:%2*****************@TK2MSFTNGP05.phx.gbl...
Hi, momo

I'm trying to do exact the same thing, but if I used response.redirect
method, the session value got lost, such that
HTTP//www.YourWebsite.com/Whereever.aspx will not be able to let the
authorized user to access it

Is it possible to bring the session variable across from https to http?
or any suggestion to resolve this issue?

Keith
"momo" <ma***@seeourweb.com> wrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
Just guide people to your HTTPS://www.YourWebsite.com/Login.aspx. Once
you have authenticated the user then redirect them to
HTTP//www.YourWebsite.com/Whereever.aspx this should work. The code to
redirect is

response.Redirect( HTTP//www.YourWebsite.com/Whereever.aspx ).

What I don't understand is way you are having them log in but then send
them to an unsecured site. Unless you are using session to validate
login.

good luck

Momo

"BizWorld" <mo**********@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
> Hi,
>
> I have a scenario where i need to configure only Login.aspx page to
> use
> SSL. All other application will run on HTTP protocol. If someone can
> guide me how to accomplish this. One of my idea is to keep login.aspx
> page in a seperate Virtual director and apply SSL only on that
> directory but i dont know if it will have an impact on session (may be
> it will create two sessions due to two different virtual directories).
> If some one can guide me what is best practice to accomplish it.
>
> Regards,
>
> BizWorld
>



May 26 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are...
2
by: Murphy | last post by:
Our website contains subdirectories for each subsidiary company, each company has it's own look and feel to the pages in their subdirectory although they are all part of the main website. The...
1
by: frekster | last post by:
All, Windows xp pro box with vs 2003 and .net 1.1 installed. Downloaded a project from source safe via vpn to my ome pc to work from home. I have three other projects on my pc that works fine...
1
by: frolda | last post by:
Hi, I moved my login.aspx page from root to a subdirectory and made -hopefully- all necessary changes for all Login controls. All the controls work just fine, except one. To my regret, the...
0
by: PolarBears | last post by:
We have several ASPX 1.1 web applications that reference a Login.aspx page. Now groups and roles have been added to .NET 2.0. And we now have the new Visual Studio 2005. I am guessing that with...
3
by: Big Charles | last post by:
Hi, How to redirect any page to Login.aspx? I tried writting this in web.config <authentication mode="Forms"> <forms name="aucoockie" loginUrl="wf_login.aspx" protection="All" path="/" />...
2
by: vikramp | last post by:
Hi, I am trying to learn new membership/roles features of ASP.NET 2.0. When we setup forms authentication and specify deny users="?" under authorization, the application asks for login. My...
3
by: Andy B | last post by:
How do you rename the login.aspx page and still make it work? and How would you determine what you should rename it to?
0
by: chet | last post by:
We have a number of existing asp.net applications where our clients now want to content manage the login page. The applications have not been developed with content management in mind and its...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.