Welcome Guest, Not a member yet? Register   Sign In
Passing a session into jQuery
#1

[eluser]zazvorniki[/eluser]
I'm working on a drop down menu that when you select one of the values it redirects the page. As soon as I redirect that page I'm losing my codeigniter sessions. Is there anyway for me to pass that session through the jQuery so that variable will be there on redirect?

Here is my jQuery

Code:
$('#chapter').change(function(){
  var chapter = $(this).val();
  $(location).attr('href','http://www.writeyourfiction.com/story/readStory/'+chapter);
  });

I was reading that codeignter sessions where actually more of a cookie, so I was thinking of passing it as a cookie, but I'm still not sure just how to go about that.




Theme © iAndrew 2016 - Forum software by © MyBB