Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2003, 11:09 AM
The Maste The Maste is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 The Maste User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cookies working on localhost

I wasn't sure whether to post this to the DNS problems or beginners. I am a beginner when it comes to Apache server, so I figured this would be the best place.
I just recently installed Apache server on my Windows XP Pro machine. I'm currently trying to get to a point where I can save cookies form my PHP scripts from my local machine ( localhost ). But as we all know, there are rules to who can save cookies to a client machine. First the domain name has to have two dots...( .domain.com ) This is where my problem lies. .localhost will not suffice. I know i have to change SOMETHING in the .conf files that explains a localhost domain: .pmi.localhost, but I have yet to figure out which commands I need to use to make it so I can save cookies from my local machine TO my local machine. I've tried naming the domain name by machine and the localhost: .machinename.localhost, that didn't work though. Any help would be greatly appreciated.

Reply With Quote
  #2  
Old February 20th, 2003, 05:27 AM
klyve1's Avatar
klyve1 klyve1 is offline
Chap
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Hove, UK
Posts: 38 klyve1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I'm not sure I understand what you problem is... I've not heard of a 2 dot hostname.... or do you mean there must be:

something.domainname.something ?

Look at the end of your .conf file - mine follows - and add the name to your hosts file too

NameVirtualHost *
<VirtualHost *>
ServerName whatswanted
DocumentRoot "D:\Apache2\htdocs"
</VirtualHost>
<VirtualHost *>
ServerName dev.whatswanted.com
DocumentRoot "D:\Apache2\htdocs\WW"
</VirtualHost>

This mean that if I type in http://whatswanted I see the server root and if I use http://dev.whatswanted.com it redirects to the WW directory and uses that as a virtual root.

Hope this helps
__________________
-_-
Klyve
http://www.whatswanted.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Cookies working on localhost


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT