473,378 Members | 1,436 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,378 software developers and data experts.

HELP: cookies / login screens / https / http / domain names, etc

OK, here's the deal.

Let's say I got a website called:
https://www.blah.com/~account/application/login.php

When the user arrives they see a https which is more secure than just
http alone.
The problem for me is it is too slow because it's shared with others
(but at least it's free), and I'm too cheap to shell out the money for
my own, etc.

The cookie when I check in firefox shows me it's associated with this
domain name (www.blah.com).

So I want to drop a cookie and then once it's in place, I want to
switch over to
the faster:
http://www.mydomainname.com/applicat...gin_submit.php

The first url (at the beginning of this message) is what's provided by
my webhost,
and the domain name is obviously different from my own. That said I
also believe
that even if used:

http://www.blah.com/~account/applica...gin_submit.php (no https) it
would still give
me a problem because of the differences between http and https, no?

When the cookie is written it references www.blah.com and not
www.mydomainname.com.

Is there a way that I can change this PATH and DOMAIN info on the fly
AFTER the cookie has been written? I also tried writing the cookie
with a Domain of just (.) and path of (/). This too was not taken.

I'm sure there are plenty of other ways to get a login screen to work..
but I'm curious
about this specific point. It's my cookie, and it's my browser.. I
don't see why there
should be any hinderances on me deciding what happens to my cookie. He
who makes it, gets to eat too right? :-)

Feb 1 '06 #1
2 1870
bump.

Feb 1 '06 #2
pa****@gmail.com wrote:
OK, here's the deal.

Let's say I got a website called:
https://www.blah.com/~account/application/login.php

When the user arrives they see a https which is more secure than just
http alone.
The problem for me is it is too slow because it's shared with others
(but at least it's free), and I'm too cheap to shell out the money for
my own, etc.

The cookie when I check in firefox shows me it's associated with this
domain name (www.blah.com).

So I want to drop a cookie and then once it's in place, I want to
switch over to
the faster:
http://www.mydomainname.com/applicat...gin_submit.php

The first url (at the beginning of this message) is what's provided by
my webhost,
and the domain name is obviously different from my own. That said I
also believe
that even if used:

http://www.blah.com/~account/applica...gin_submit.php (no https) it
would still give
me a problem because of the differences between http and https, no?

When the cookie is written it references www.blah.com and not
www.mydomainname.com.

Is there a way that I can change this PATH and DOMAIN info on the fly
AFTER the cookie has been written? I also tried writing the cookie
with a Domain of just (.) and path of (/). This too was not taken.

I'm sure there are plenty of other ways to get a login screen to work..
but I'm curious
about this specific point. It's my cookie, and it's my browser.. I
don't see why there
should be any hinderances on me deciding what happens to my cookie. He
who makes it, gets to eat too right? :-)


First of all, you should wait for at least 24 hours for a response. All
of us here are volunteers, and many of us only get on once a day.

As for your problem. You can't share cookies between domains. The
browsers won't let you. And it's a good thing, also. Otherwise it
would be a huge security hole for one domain to be able to read another
domain's information!

And no, once the cookie has been written, it's at the user's browser.
All you can do is read it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 1 '06 #3

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

Similar topics

2
by: Harold Crump | last post by:
Greetings, I am building a database-driven PHP application. Part of that app needs to run over SSL for gathering private data. Now, when someone purchases a certificate, the domain name is...
2
by: Mark Delon | last post by:
Hi, i want to log via python script to https page: 'https://brokerjet.ecetra.com/at/' # But it does not work. I am using following code(see below)
0
by: Calvin KD | last post by:
Hi everyone, I need help urgently. I have a C#.Net app which uses cookies for state management. Everything has been going fine until recently we've expanded the app and a few more screens were...
7
by: Control Freq | last post by:
Hi, Apologies of you have heard this many times before, but I don't know if this is a .NET problem or javascript, or something else. I am using IE6 to view pages from a corporate web server...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
6
by: hpatel | last post by:
Hi, I maintain a website for my organization. Recently, for a login page, I started using HTTPS. It works fine with HTTPS. The problem I face is : When a user goes to login page, he sees the...
8
by: Harris Kosmidhs | last post by:
Hello, while I'm developing sites for some time I never coded a login form with security in mind. I was wondering what guidelines there are. For my point of view I'm thinking of using md5...
7
by: mcfly1204 | last post by:
I have a request to a login page, and I am trying to save the response cookies in a CookieContainer. I am then attempting to make another request reusing the previous CookieContainer. I then am...
5
by: mcfly1204 | last post by:
I am attempting to use WebRequest to access a page that requires a login/password to access. My last WebRequest continues to timeout. Any help or thoughts would be appreciated. namespace...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.