check whether website is opened in mobile browser RRS feed

  • Question

  • User-2050663300 posted

    Hello All,

    How can i check if website is opened in mobile browser.

    I know useragent but it shows device type whether it is android or wat... but i want to check mobile browser...

    Monday, April 15, 2013 5:54 AM

All replies

  • User-2139489267 posted

    Could you elaborate more? Show us what have you done?

    Monday, April 15, 2013 5:57 AM
  • User-2050663300 posted

    I have developed one android application of my company website...

    Now, we are going to add login feature so if anyone login once in application then from the next time, it will be directly redirectly to user page whenever he/she launches application...

    But, if that same user, open mobile website in external browser then he/she will see mobile website not wont be redirect to user page...

    So i want to check whether website is opening in external browser of application so that i can do further process for it...

    Monday, April 15, 2013 6:06 AM
  • User-2139489267 posted

    How are you gonna detect if (s)he is returning user ?

    Monday, April 15, 2013 6:15 AM
  • User-2050663300 posted

    i will use session and so if website is opened in application and session is not null then will redirect to specific page

    else if website is opened in mobile external browser then no issue...

    But tell me how to detect whether it is mobile external browser ???

    Monday, April 15, 2013 6:18 AM
  • User-2139489267 posted

    Are you sure that if user opens new browser and key in your site url, there'll be session present?

    Monday, April 15, 2013 6:22 AM
  • User-2050663300 posted

    i cant be sure but im gonna to try it...

    let me know if there is any other way ???

    Monday, April 15, 2013 6:24 AM
  • User-2125168801 posted

    You cannot use session but i guess you are talking something about "Remember Me" option which uses cookie.

    Monday, April 15, 2013 6:44 AM
  • User-2050663300 posted

    yea, u can say it...

    but i think it is possible some mobile users does not allow cookies...

    Monday, April 15, 2013 6:47 AM
  • User-2125168801 posted

    you have to depend on database, while checking username and password check whether user already logged in or enabled "Remember Me" option.

    Monday, April 15, 2013 6:57 AM
  • User71929859 posted


    But tell me how to detect whether it is mobile external browser ???

    Check below


    Wednesday, April 17, 2013 1:23 AM
  • User-2050663300 posted

    i know about 51degrees...

    but i dnt think so that it also trackes whether it is mobile external browser or android application...

    Wednesday, April 17, 2013 2:30 AM