June 24, 201214 yr Please help on jquery-ajax sending php session variables I'm just practicing my php intermediate level. I would like to know how to send php session from one page to another page. Like: Page A = I want to send a data from this page A to admin/page B. Where Page B is inside admin folder and it is login projected, Page A is out of admin folder and it not login protected. i'm using jquery-ajax to send data when link is clicked. From Page A to Page B. $('.pageAlink').click(function() { $.get('admin/pageb.php', 'id=1&action=clicked', function(data) { // if works do something }); }); By the above code i can send the data from Page A to admin/Page C which is in admin folder and NOT login protected. If i try to send the same data to admin/Page B, it will redirect to login page and it wont accept any data since it is login protected. So if i want to send the data from Page A to admin/Page B i need to send session data too with the ajax request. I do i do that? Please show me the way. Thank you..
Create an account or sign in to comment