How to generate token by using uniqid?

For this section, i used token to save into cookie to do remember me function. But, this column will be focusing on how to generate token or mix number by using uniqid.

1)  If you want to test the uniqid(), you can include this coding and see the output :

<?php
echo uniqid();
?>


2) In my system, i generate uniqid() and the uniqid is include with the user_id. The coding is shown below :

$login_token = uniqid(). $this->session->user_id;

So, you can see the output when you test in your system.

Comments

Popular posts from this blog

What is getnada?

What is Dummy Text?