0

I do not have a database.

My website will use a php class (mobiledetect.php) to find the user agent and type of browser, whereby a certain .css file is parsed. If the user prefers to view the full css site, how can I create a php session so as not to redirect the user again. So, only to ask the first php class once?

I am new to php.

3

1 Answer 1

1

Basically, I see two options that you have -- one is to just store the information locally (in the PHP session), the other is to store the user preferences in a cookie.

If you could actually show us your mobiledetect.php code, it would probably be easier to help you with actual code.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.