Title: Cookie sessions
Last modified: June 19, 2018

---

# Cookie sessions

 *  Resolved [J Garner](https://wordpress.org/support/users/jagarner/)
 * (@jagarner)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/cookie-sessions/)
 * Hi there,
 * Curious about the use of cookies and sessions.
    Does the following generate a
   cookie and/or session and if it does is there any way to prevent the cookie /
   session if the language redirect is not being used?
 * ./wp-content/plugins/multilingual-press/inc/redirect/Mlp_Redirect_Frontend.php:
   session_start();
    ./wp-content/plugins/multilingual-press/inc/redirect/Mlp_Redirect_Response.
   php: session_start();
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Guido Scialfa](https://wordpress.org/support/users/wido/)
 * (@wido)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cookie-sessions/#post-10432503)
 * Hi [@jagarner](https://wordpress.org/support/users/jagarner/),
 * The information about the redirect are stored using localStorage not cookies,
   server side them are retrieved by GET variables.
 * That begin said, the redirect is default to ‘PHP’ which means the redirect.js
   file isn’t enqueued and no data is stored into the user browser (localStorage).
 * The session is used to retrieving the value by the GET url parameter, so if the
   redirect option is set to ‘0’ you’ll not use session nor localStorage.
    -  This reply was modified 7 years, 10 months ago by [Guido Scialfa](https://wordpress.org/support/users/wido/).
 *  Thread Starter [J Garner](https://wordpress.org/support/users/jagarner/)
 * (@jagarner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/cookie-sessions/#post-10435885)
 * Thanks very much [@wido](https://wordpress.org/support/users/wido/) for your 
   feedback, that’s really helpful.
 * John

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cookie sessions’ is closed to new replies.

 * ![](https://ps.w.org/multilingual-press/assets/icon-256x256.png?rev=2188271)
 * [MultilingualPress](https://wordpress.org/plugins/multilingual-press/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multilingual-press/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multilingual-press/)
 * [Active Topics](https://wordpress.org/support/plugin/multilingual-press/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multilingual-press/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multilingual-press/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [J Garner](https://wordpress.org/support/users/jagarner/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/cookie-sessions/#post-10435885)
 * Status: resolved