<script type="text/javascript">
// Function to set a Cookie
function vpb_set_cookie(cookie_name, cookie_value, total_days_allowed)
{
if (total_days_allowed != "")
{
var vpb_date = new Date();
vpb_date.setTime(vpb_date.getTime() + (total_days_allowed*24*60*60*1000));
var vpb_expires = ";
expires="+vpb_date.toGMTString();
}
else { var vpb_expires = "";
}
document.cookie = cookie_name+"="+cookie_value+vpb_expires+";
path=/";
}
// Function to read a Cookie
function vpb_read_cookie(cookie_name)
{
var vpb_cookie_name = cookie_name + "=";
var split_cookie_name = document.cookie.split(';
');
for( var i = 0;
i < split_cookie_name.length;
i++ )
{
var vpb_split_cookie_name = split_cookie_name[i];
while ( vpb_split_cookie_name.charAt(0)==' ' )
{
vpb_split_cookie_name = vpb_split_cookie_name.substring(1,vpb_split_cookie_name.length);
if ( vpb_split_cookie_name.indexOf(vpb_cookie_name) == 0 )
return vpb_split_cookie_name.substring(vpb_cookie_name.length,vpb_split_cookie_name.length);
}
}
return null;
}
// Function to delete a Cookie
function vpb_delete_cookie(cookie_name)
{
vpb_set_cookie(cookie_name, "", -1);
}
//This is how you should use the above function to set the cookie with 10 days to keep the cookie active before it expires.
vpb_set_cookie('fullname','Victor Olu',10);
//This is how you should use the above function to delete your cookie - The cookie will be deleted if you uncomment the below code.
//vpb_delete_cookie('fullname');
//This is how you should use the above function to read or get your cookie after setting it.
alert( vpb_read_cookie('fullname') );
</script>
Our objective is to reach a place where our services will be highly regarded by businesses from various industrial domains for building their innovative busines solutions with our cutting-edge technological expertise, interactive designs and uncompromised quality.
We aspire to help businesses ranging from startups to enterprises, who reach out to us with their requirements, in achieving great lengths, expanding their reach, upscaling their products, and generate a large user-base with our outstanding and cost-effective services.
Copyright © 2011 - 2024 | All Rights Reserved