473,396 Members | 2,010 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,396 software developers and data experts.

SSL and user controls

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?

Mar 14 '06 #1
5 1268
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.

<ja***************@vitalthought.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
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?

Mar 14 '06 #2
So whats the best solution? A redirect to an SSL page and a redirect
back after authentication?

Mar 14 '06 #3
> 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
Mar 14 '06 #4
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.
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:mn***********************@spamgourmet.com...
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

Mar 14 '06 #5
The way we do it is to do login with https and then redirect to not https
version of the site.

George.
<ja***************@vitalthought.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
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?

Mar 14 '06 #6

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

Similar topics

1
by: Robert Howells | last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad architecture. I'd appreciate some feedback on the the wisdom (or lack thereof) in attempting the following: I'm not new...
6
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
4
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
2
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
0
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
3
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
8
by: mark.norgate | last post by:
I've run into a few problems trying to use generics for user controls (classes derived from UserControl). I'm using the Web Application model rather than the Web Site model. The first problem...
3
by: Terry Olsen | last post by:
I'm trying to add a domain user to a local group using the code below: Dim LCL As New DirectoryEntry("WinNT://" + Environment.MachineName + ",computer") Dim DOM As New...
1
by: zeya_bakhtyar | last post by:
Here is the page architecture: Page loads multiple user controls (including nested user controls) dynamically based on parameters provided into place holders. Note: The page only has the logic to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.