User Profile

Collapse

Profile Sidebar

Collapse
gmax
gmax
Last Activity: Dec 14 '13, 04:56 AM
Joined: Dec 3 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gmax
    started a topic php set subdomain cookies and redirect
    in PHP

    php set subdomain cookies and redirect

    I have the cookies and subdomain selection for header:

    Code:
    <script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
    $(function(){
    var city = readCookie('city');
    if(city !=null && city !=''){
    window.location.href = 'http://' + city + '.example.com';
    }
    $('#citygo').change(function(){
    ...
    See more | Go to post

  • Any solution Dormilich? Thanks.
    See more | Go to post

    Leave a comment:


  • Set cookie and redirect user to a visited subdomain

    The cookie is not holding and the domain example.com cannot redirect to a.example.com when I type on the address bar. Anyone good at cookies? Any help will be very much appreciated.

    Code:
    <script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
    $(function(){
    	var city = readCookie('city');
    	if(city !=null &&
    ...
    See more | Go to post
No activity results to display
Show More
Working...