dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: igeek

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,108

    I have tested the web browsers (IE, Firefox and...

    I have tested the web browsers (IE, Firefox and Chrome) by using some testing script and the cookie was working.
  2. Replies
    5
    Views
    2,108

    Thanks NogDog but not working. I think the place...

    Thanks NogDog but not working. I think the place that I add the code is wrong. I have added the same code to 2 index.php pages which belong to main domain and sub-domain. Both domains are running the...
  3. Replies
    5
    Views
    2,108

    PHP Cookie Issue on Redirect

    I'm not exactly sure what the problem is but the cookies aren't available for subdomains. Is there any way around this, or is there a better way to set the cookies domain? Thanks!


    <?php ...
  4. Replies
    12
    Views
    3,314

    javascript and PHP are two completely different...

    javascript and PHP are two completely different animals. For now I prefer to run on the server side but I am not familiar with it. I just need a simple script that work so can you please help? Thanks.
  5. Replies
    12
    Views
    3,314

    How about this code? Can you fix it?

    How about this code? Can you fix it?


    <?php
    $hour = time() + 50400; //Time you want the cookie to last, currently 14 hours
    setcookie(My_Site_Location, $_SERVER['citygo'], $hour, '/',...
  6. Replies
    12
    Views
    3,314

    I am trying to approach it from the other...

    I am trying to approach it from the other direction but still not good.


    <?php
    $hour = time() + 50400;
    setcookie(My_Site_Location, $_POST['citygo'], $hour);

    //Cookie...
  7. Replies
    12
    Views
    3,314

    The loop stops but the cookie is not holding and...

    The loop stops but the cookie is not holding and the domain (example.com) cannot redirect to subdomain (a.example.com) when I type on the address bar. It was working partially with the previous code.
  8. Replies
    12
    Views
    3,314

    I added the script to the top of index.php page.

    I added the script to the top of index.php page.
  9. Replies
    12
    Views
    3,314

    That's the script I use on the top. I only follow...

    That's the script I use on the top. I only follow your instruction.
  10. Replies
    12
    Views
    3,314

    Thanks unasAquila. It is working partially. The...

    Thanks unasAquila. It is working partially. The domain can redirect to the subdomain but keeps running repeatedly. How to stop the loop?
  11. Replies
    12
    Views
    3,314

    php set subdomain cookies and redirect

    I have the cookies and subdomain selection for header:


    <script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
    $(function(){
    var city =...
  12. Remember cookie and redirect to a visited subdomain

    The code is working but the cookie is not holding and the domain example.com cannot redirect to a.example.com when I type on the address bar. The issue should be the cookies are saved per domain for...
Results 1 to 12 of 12
HTML5 Development Center



Recent Articles