-3

I 'm creating a web app in which i need to save the sessions in the database including the Ip address of the user and the date and time of the session , for that i want to know how to do that ,knowing that the app will be used in LAN . i 'm using codeIgniter framework.

1

1 Answer 1

4
echo $_SERVER['SERVER_ADDR'] 

or

echo $this->input->ip_address(); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.