Digital Point Forums
Moneygram

Go Back   Digital Point Forums > Design & Development > Programming > PHP
Google Analytics
Log In to view
your analytics

View Poll Results: session.use_trans_sid = should I use??
NO. Anyone who stops cookies will suffer on my site as they will not be able to log in etc. 0 0%
YES. Use session.use_trans_sid but be ready for security breaches. 0 0%
Another way of doing. Please post 2 100.00%
Voters: 2. You may not vote on this poll

Reply
 
Thread Tools
  #1  
Old May 8th 2008, 5:24 pm
johnsmith153 johnsmith153 is offline
Peon
 
Join Date: May 2008
Posts: 16
johnsmith153 is on a distinguished road
session.use_trans_sid - Please Just Post Your Quick Vote (answer 1, 2 or 3)

I have spent a bit of time learning php sessions and I am doing a login script.

Please just post a quick answer 1,2,3 as to what you think I should do.

Any comments will be appreciated also.

(1) Anyone who stops cookies will suffer on my site as they will not be able to log in etc.

(2) Use session.use_trans_sid but be ready for security breaches.

(3) Another option (please tell me.)

Thanks for your votes / help.
Reply With Quote
  #2  
Old May 8th 2008, 9:16 pm
NatalicWolf NatalicWolf is offline
Hand of A'dal
 
Join Date: Dec 2007
Location: New york
Posts: 257
NatalicWolf will become famous soon enough
do this, in the session:
php Code:
/* Create new session
session_start();
/* Save our data */

$_SESSION['IP']=$_SERVER['REMOTE_ADDR'];
$_SESSION['User']=$_POST['User'];
$_SESSION['Pass']=md5($_POST['Pass']);
$_SESSION['Encrypt']=md5($_POST['User'].$_POST['Pass']."PUTASECRETCODEHERE");


/* Check login on other pages but first make sure IPs match the session */
if($_SESSION['IP']==$_SERVER['remote_addr']){
if(md5($_SESSION['User'].$_SESSION['Pass']."PUTASECRETCODEHERE")==md5($sqlArray['User'].$sqlArray['Pass']."PUTASECRETCODEHERE"))
{
echo "Welcome, back!";
}
}
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A quick question, please answer if you know... xAlexKimx AdSense 14 May 1st 2008 4:21 am
*** Need a quick answer... please help oo7ml Legal Issues 3 Mar 20th 2008 3:46 pm
Anyone have a quick answer, please?? gemini181 XML & RSS 1 Nov 11th 2006 12:28 pm
Quick question, hopefully a quick answer. Roman Guidelines / Compliance 4 Feb 8th 2006 12:40 pm
Which one is your favorite answer service, google answer or yahoo answer t10host Google 1 Dec 11th 2005 8:23 am


All times are GMT -8. The time now is 10:52 am.