It's a long story but if you go to this site in development, you will get a better idea what I am trying to do. It is a system to build like a 'TOC' or entry ponits on the video . The buttons when clicked goto whatever cuttennt-vid-time you have set. It is for video presentations and other things. Go into the video and click the new ep button, You will get a popup explaining the operation, When done I want to savethe src of the video, comments for the entry points and the buttons added in cookies Use the red EP button as return after playing the video a few seconds and adj to desired EP
Video site
The actual php (reached by ajax) to set cookies
<code>
<?php
session_start();
if(isset($_POST["mp"])){ // echo "set";
$mp = $_POST["mp"];
$dall = $_POST["dall"];// echo "dall=".$dall;
$uep = $_POST["uep"]; //echo "uep=".$uep;
$_SESSION["mp"] = $mp;
$_SESSION["dall"] = $dall; echo "sesdall".$_SESSION["dall"];
$_SESSION["uep"] = $uep; echo "sesuep".$_SESSION["uep"];
setcookie('mpCookie'.'$mp'.time()+30*24*60*60.);
setcookie('dallCookie'.'$dall'.time()+30*24*60*60.);
setcookie('uepCookie'.'$uep'.time()+30*24*60*60.);
</code>
}
?>