SSL and user controls

  • Thread starter Thread starter jacques.m.steward
  • Start date Start date
J

jacques.m.steward

I want to minimize the amount of SSL traffic on my page so, can I Have
SSL for the Login User Control and Not the rest of the page? How do I
tell if the Login is secure?
 
Think of the user control as a button. You wouldn't expect a button to be
SSL all on its own, right? After all, it is just an <input> tag. And your
user control also ends up being a bunch of tags and javascript on your page
as if you had placed all those things on your page manually.
 
So whats the best solution? A redirect to an SSL page and a redirect
back after authentication?
 
So whats the best solution? A redirect to an SSL page and a redirect
back after authentication?

There are probably ways around it, using for example a database as
intermediate store, but it's not "simple".
The browser handles "http://www.yoursite.com" and
"https://www.yoursite.com" as two separate sites. This means that the
session-cookie of one is *not* transfered to the other. As a result
those two parts can't share sessions.

A suggestion:
- login at the https part
- store that fact in the database, under a newly generated guid plus
expiry date
- redirect to the http part, using that guid as parameter
- read the credentials stored under the guid, test if it is not
expired.
- store the credentials in the local session and remove the db-record

Hans Kesting
 
You are a bit wrong here.
Browsers are "smart" enough to know that http and https same sites. So
cookies and Session stays the same for http and https.


Otherwise you will never be able to login anywere :)

George.
 
The way we do it is to do login with https and then redirect to not https
version of the site.

George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ASP.NET and SSL question 5
SSL from a web user control? 2
Sharing SSL 5
Do i need SSL ?? 7
encrypted request from unencrypted page 2
Authentication cookie security 1
How to use SSL 2
From http:// to https:// 1

Back
Top