Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7888707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:54:07+00:00 2026-06-03T05:54:07+00:00

After i finished the mobile version of my website i used the https://github.com/sebarmeli/JS-Redirection-Mobile-Site to

  • 0

After i finished the mobile version of my website i used the https://github.com/sebarmeli/JS-Redirection-Mobile-Site to make the redirection to mobile site and also the redirection to the full site. Also i am using the cookie function to save the state for 1 hour using the code bellow:

  <script>
                 SA.redirection_mobile ({
                noredirection_param : "noredirection", 
                mobile_prefix : "m", 
                cookie_hours : "1"
                });
            </script>

The problem that i have is that i use subdomains in my site and when i came back to full site if i click to a link for example news.site.com/cat1/news1 or video.site.com/video1 the redirection goes back to mobile site because cookie is created for http://www.site.com site the redirection is http://www.site.com/noredirection=true.

Any idea how to solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:54:08+00:00Added an answer on June 3, 2026 at 5:54 am

    The issue is pretty easy to fix if you set the cookie yourself without the www. Setting the domain for the cookie as .site.com would allow for any subdomain.Take a look at this stack answer.
    You might be able to modify the script your using, or just setting the cookie manually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just finished reading this post: https://developer.yahoo.com/performance/rules.html#flush and have already implemented a flush after
How can I make a function run after a certain element has finished animating?
I have an MVC application. After I finished the web site I need to
I have a site that I'm building a mobile version for. I would like
After I finished coding the difficult parts of my game, I found some memory
I have a script that needs to run after tomcat has finished starting up
I want to start my successfully installed Java program after the installation finished. I
The following output appears after running some rake tasks: Loaded suite /usr/bin/rake Started Finished
I am getting the order information after the checkout process is finished and I
After searching stackoverflow.com I found several questions asking how to remove duplicates, but none

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.