Skip to content

Commit

Permalink
Reverted the cookie helper function back to its original state
Browse files Browse the repository at this point in the history
  • Loading branch information
jc1arke committed Mar 8, 2012
1 parent 640212c commit 19fb1d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions system/helpers/cookie_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,17 @@ function get_cookie($index = '', $xss_clean = FALSE)
/**
* Delete a COOKIE
*
* @param string the name of the cookie
* @param mixed
* @param string the cookie domain. Usually: .yourdomain.com
* @param string the cookie path
* @param string the cookie prefix
* @return void
*/
if ( ! function_exists('delete_cookie'))
{
function delete_cookie($name = '')
function delete_cookie($name = '', $domain = '', $path = '/', $prefix = '')
{
$CI =& get_instance();
return $CI->input->delete_cookie($name);
set_cookie($name, '', '', $domain, $path, $prefix);
}
}

Expand Down

0 comments on commit 19fb1d7

Please sign in to comment.