title: Mobile browsers doesn't support session variables?
body: <p>I have a browser version of my web app and I have some values stored in cookies. Now I am making a mobile version and it seems that my cookies are not working. 
  Is it possible to use cookies on mobile devices? </p>
  
  <p>I am trying to perform this code and my php is giving me an empty value:</p>
  
  <pre><code>$(document).ready(function() {
      var session_lang= '&lt;?php if(isset($_SESSION['SESS_LANGUAGE']))
                              echo $_SESSION['SESS_LANGUAGE'];?&gt;';
              if (session_lang!='')
              {
                  check_and_change(session_lang);   
              }
      });
  </code></pre>
  
  <p>Is there any other way to store data in internal memory so it can work as cookie?
  Does mobile devices support session variables? I am looking on the firebug and I can see that I can create session variable but when I want to read it it is null. 
  What could be a problem and how to solve this?</p>
  
  <p>EDIT:
  I will put you almost entire code so you can see what am I doing...btw. this code is working normally on PC browser.</p>
  
  <p>Javascript file:</p>
  
  <pre><code>$(document).ready(function() {
  
      function languageChange()
      {
           var lang = $('#websites1 option:selected').val();
  
          return lang;
      }
  
  
      $('#websites1').change(function(e) {                    
  
          var lang = languageChange();
  
          var dataString = 'lang=' + lang;
  
          $.ajax({
  
              type: "POST",
              url: "pass_value.php",
              data: dataString,
              dataType: 'json',
              cache: false,
              success: function(response) {
  
                      check_and_change(response.message);
                   }
          });
  
          return false;
  
      });
  
  } );
  
      function check_and_change(lang)
       {
              switch (lang)
                           { //do something
                            }
      }
  </code></pre>
  
  <p>Then this first part that I have put above is on the actual php site that I am looking and which is opening:</p>
  
  <p>And the last thing is pass_value.php:</p>
  
  <pre><code>&lt;?php 
  session_start();
  
  $_SESSION['SESS_LANGUAGE'] = $_POST['lang'];
  
  print json_encode(array('message' =&gt; $_SESSION['SESS_LANGUAGE']));
  die();
  ?&gt;
  </code></pre>
  
  <p>I really don't know why this code doesn't work on the mobile phones.</p>