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

  • Home
  • SEARCH
  • 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 7079963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:44:10+00:00 2026-05-28T06:44:10+00:00

I ran into a safari problem considering cookie policy in iframes… Also I found

  • 0

I ran into a safari problem considering cookie policy in iframes… Also I found a working solution for that, yet to make it work I need to determine in what browser user is viewing.

Original solution as to search in HTTP_USER_AGENT (django) word – safari. Problem here is:

Safari Windows XP on WM User Agent – Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7

Chrome Linux User Agent – Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.

So I’m struggling to find information what makes User Agent and how to parce it to get precise results. Sure in this case I can trow in extra if there is no word ‘chrome’, but what about chromium konqueror and any other minor browsers…

  • 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-05-28T06:44:11+00:00Added an answer on May 28, 2026 at 6:44 am

    So I found that in User agent there can be any information you want.

    There is some sort of abstract rules by witch you can determine a browser, yet those rules does not apply to all browsers.

    During the browser wars, many web servers were configured to only send web pages that required advanced features to clients that were identified as some version of Mozilla.
    For this reason, most Web browsers use a User-Agent value as follows: Mozilla/[version] ([system and browser information]) [platform] ([platform details]) [extensions].

    More @ http://en.wikipedia.org/wiki/User_agent

    In my case I’ve looked at http://www.user-agents.org/ and determined that only Chrome impersonates Safari in the last section.

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

Sidebar

Related Questions

I ran into a problem on Chrome and Safari using jQuery to do some
I've ran into the following problem: the javascript lib i'm working on uses JSON
Ran into another challenge. I looked through some of the questions that I found
I ran into a bug I have trouble explaining. Now that I found the
I ran into the problem that my primary key sequence is not in sync
I ran into a strange issue over the weekend while I was working on
I ran into an interesting dilemma today. I have a function that handles information
I ran into an interesting problem at work today. I got a request to
Never ran into this problem with jQuery before. I have the following: $(document).ready(function() {
Ran into an issue today that I have not been able to resolve. I

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.