<form action='/login.php' method='post'> relative link on your site work?
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
infomation that wasnt in the first post,
sub1.mysite.com and sub2.mysite.com have the same path from the server root so
try <form action='<?php echo $_SERVER['DOCUMENT_ROOT'];?>/login.php' method='post'>
if sub1.mysite.com is directed towww.mysite.com/subfolder1/subfolder2 then relative links ..(up one) will work even if they lead above the root of the subdomain
<form action='../../login.php' method='post'> (demo: up two) it may be enough to count the folders back to the www root
both methods work, the first one on a site where subdomains all point to folders one level below the wwww root(planned in advance), the second on a site where the original work was built (hashed together) over years and many generations of code, (and is still patched when problems occur instead of being rewritten properly(aarrrgh time there is never enuf))
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
just the format of the code to put in the cookie too leave off the www and make the cookie refer to .mysite. let me open up my notes, probably the next link is the php one
edit: yep, subdomain cookies at php.net http://php.net/manual/en/function.setcookie.php
domain
The domain that the cookie is available. To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the ยป spec for details in 'parameters' at the top of the page
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
not bad, just drawn that way :jessica_rabbit:
a learning experience,
learn from mistakes, we have already learnt have therefore made more mistakes,
NOT the best way to build an Abomb though, Dos V'danye
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376