Welcome Guest, Not a member yet? Register   Sign In
Quick Question
#1

[eluser]Wondering Coder[/eluser]
hi to all,

I have 2 questions.
1. Is it ok or better to use redirect('controllername') or the _remap function in CI?
2. Also I am using the database table ci_session for better security is this enough to secure my site for those hacker and use md5 for hash?
#2

[eluser]Eric Barnes[/eluser]
Hi,

1. redirect and remap are two very different things. So it all depends on what you are trying to accomplish.
2. That is just to help. Your code can still be insecure.
#3

[eluser]Wondering Coder[/eluser]
thanks for the reply Eric Barnes,

1. What I want is after I submit a form then I will be redirected back to my homepage or to another page(btw-im using redirect function). I've red the _remap says it for controller function, haven't got a reason to use it yet.
Also I have a url:
www.mysite/profile/contact_detail/8
I want to look just like this:
www.mysite/profile //In my site I just want to view 2 segments.

2. Which one is better md5 or sha1 for hashing?

thanks again ^_^




Theme © iAndrew 2016 - Forum software by © MyBB