Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Is it safe to use sessions for user validation?
Post: RE: Is it safe to use sessions for user validation...

Thanks for all your answers! In my query example, $user_id is not user input, but a value taken from the session, which was added there from a query that takes user Ids (which are always integers)....
3,750 Views
5 Replies
06-18-2017, 11:22 AM
ronaldv
    Thread: Is it safe to use sessions for user validation?
Post: Is it safe to use sessions for user validation?

I have a website with user registration & login. On login, after username and password are validated, I create a session like this: PHP Code: -- $this->session->set_userdata('user_id', $user->id);...
3,750 Views
5 Replies
06-16-2017, 03:19 PM
ronaldv
    Thread: users bypassing IP ban
Post: RE: users bypassing IP ban

Narf Wrote: (12-06-2016, 02:57 PM) -- Do you have separate URLs for the form itself and where the form sends its data? If so, one could just send their registration data without actually using the...
2,949 Views
2 Replies
12-07-2016, 01:25 PM
ronaldv
    Thread: users bypassing IP ban
Post: users bypassing IP ban

I store in the DB a list of "bad" IPs, and in my controller for the sign up page I redirect users whose IP is found in the list of bad IPs using this code: Code: -- redirect(base_url('xxx')); -- ...
2,949 Views
2 Replies
12-06-2016, 01:01 PM
ronaldv
    Thread: Introducing Around Singles - dating site for local singles
Post: RE: Introducing Around Singles - dating site for l...

albertleao Wrote: (08-22-2016, 08:26 PM) -- I would suggest mixing up the profile pictures you display on your main page. I don't know if it's rotating, but every time I go there, it's all dudes! -- ...
8,104 Views
5 Replies
08-24-2016, 03:10 AM
ronaldv
    Thread: Introducing Around Singles - dating site for local singles
Post: RE: Introducing Around Singles - dating site for l...

@Paul Thank you very much for the review! for sure I’ll try some of your ideas! :) @albertleao You better don’t mess with your girlfriend ;) but you could have still commented without registering, ...
8,104 Views
5 Replies
08-20-2016, 11:53 PM
ronaldv
  Heart Thread: Introducing Around Singles - dating site for local singles
Post: Introducing Around Singles - dating site for local...

Hi everybody, I'm pleased to introduce my project to the CodeIgniter community. Around Singles is a dating site for local singles: https://www.aroundsingles.com (https://www.aroundsingles.com) ...
8,104 Views
5 Replies
08-19-2016, 01:08 PM
ronaldv
  Exclamation Thread: accesing model from browser?
Post: accesing model from browser?

Out of curiosity I tried to open my model through the browser: http://www.domain.com/application/models/My_model.php and instead of getting some "not found" or "no access" error I got: Fatal ...
3,283 Views
2 Replies
11-26-2015, 12:45 PM
ronaldv
    Thread: security problem with GET
Post: RE: security problem with GET

Thanks for the answers! Since the POST wouldn't solve the security issue I didn't change the GET, but added user validation in the delete method.
3,801 Views
3 Replies
11-21-2015, 06:15 AM
ronaldv
    Thread: Just been asked to take over a codeigniter website
Post: RE: Just been asked to take over a codeigniter web...

To edit pages you'll have to check the files on "application/views/" To get started with CodeIgniter I recommend you to read the Tutorial (http://www.codeigniter.com/user_guide/tutorial/index.html)...
2,102 Views
1 Replies
11-20-2015, 01:32 PM
ronaldv
    Thread: security problem with GET
Post: security problem with GET

My website allows user accounts, and users can upload and delete images. For deleting an image this js is called: Code: -- xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "index.php/controlle...
3,801 Views
3 Replies
11-20-2015, 01:23 PM
ronaldv
    Thread: Undefined offset: 0 and Trying to get property of non-object
Post: RE: Undefined offset: 0 and Trying to get propert...

pdthinh Wrote: (11-05-2015, 08:39 PM) -- You should use var_dump($query1) after line 1818 to check it has any row return. -- Do you mean using var_dump() for debugging? I just solved the issue i...
8,831 Views
3 Replies
11-06-2015, 01:58 AM
ronaldv
  Bug Thread: Undefined offset: 0 and Trying to get property of non-object
Post: Undefined offset: 0 and Trying to get property of...

my page shows 2 php errors (curiously only on OSX and not Windows 10 or Android): A PHP Error was encountered Severity: Notice Message: Undefined offset: 0 Filename: controllers/Dating.php Line...
8,831 Views
3 Replies
11-05-2015, 03:03 PM
ronaldv

Theme © iAndrew 2016 - Forum software by © MyBB