Current location: Hot Scripts Forums » Programming Languages » PHP » PHP class security


PHP class security

Reply
  #1 (permalink)  
Old 09-22-04, 04:47 AM
maldiv_f maldiv_f is offline
New Member
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question PHP class security

Hello,

I have to create a site with PHP and I need some information (eg.:username, id, mode,...) on all pages. I know some sollutions but I don't know which is the right(secure and fast) way.
I heard some security problems with global variables.
I wondering if I use a global class(object) for these informations is it secure or is it easy to hack the class data and get a full controll on my site?
Is it better to use SESSION variables?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-22-04, 09:17 AM
Bobbi Bobbi is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Global vars are in general much more secure than those unregistered ones. As long as you don't store your raw password in a session and make enough checks, you should be on the safe side with SESSION vars.

If you don't know enough about login and data checks, I'd recommend you to check out PHPSecurePages (http://www.phpsecurepages.com), it should show you how to handle that stuff.
__________________
Bobbi - Next-Gen ITsolutions
http://www.ngemu.com - http://www.ngits.de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Injections & Security in PHP Four0Four PHP 9 09-17-04 07:18 AM
How to convert php generated pages to SE friendly HTML or PHP(SE friendly) -CLASS 101 crippled PHP 1 11-16-03 07:37 AM
PHP scripts security khibinite PHP 2 10-23-03 07:13 AM
Class reservation system - php wardazo Script Requests 5 07-20-03 06:03 PM


All times are GMT -5. The time now is 08:42 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.