# |
Sep 18th 2019, 11:39 |
adam282 |
Just a remote dev server. No prod. |
# |
Sep 18th 2019, 11:38 |
alexdd55976 |
ok, if this is possible... i hope its not remote AND on production server :) |
# |
Sep 18th 2019, 11:37 |
adam282 |
I don’t like developing locally. Makes it easier this way so I can show the customer or another developer the progress. I haven’t developed locally in many, many years. |
# |
Sep 18th 2019, 11:37 |
alexdd55976 |
@adam282 i would invest the time to get everythring done locally, so no surprises later on the server |
# |
Sep 18th 2019, 11:36 |
adam282 |
Now that it’s 4:35A local time and I have to be up in 8 hours for my normal job, I am heading to bed. Thanks again, I appreciate it. |
# |
Sep 18th 2019, 11:36 |
adam282 |
Anyways, I fixed my issue temporarily. I added a `session_destroy();` at the top of the routine and the same for the sign out. |
# |
Sep 18th 2019, 11:35 |
alexdd55976 |
all easy |
# |
Sep 18th 2019, 11:35 |
alexdd55976 |
relax guys |
# |
Sep 18th 2019, 11:35 |
adam282 |
Dude, seriously? I can’t read minds. |
# |
Sep 18th 2019, 11:35 |
adam282 |
Yes you are correct |
# |
Sep 18th 2019, 11:31 |
conehead |
That is pretty much what I ment. But be careful what you say before tells you that you know nothing ;) |
# |
Sep 18th 2019, 11:30 |
alexdd55976 |
you can emulate aws locally.. just fyi... |
# |
Sep 18th 2019, 11:14 |
adam282 |
I am sure the issue is server related. Thank you all for your help and looking at my code, I appreciate it. |
# |
Sep 18th 2019, 11:12 |
adam282 |
`But there is something wrong if you cannot test your code locally` - My response was `There is nothing wrong about not being able to test locally when I am using an AWS RDS instance that does not have public access enabled for security reasons` |
# |
Sep 18th 2019, 11:12 |
conehead |
That is where something is wrong already |
# |
Sep 18th 2019, 11:12 |
conehead |
i am not even talking about aws |
# |
Sep 18th 2019, 11:11 |
adam282 |
AWS RDS instances are not always configured for public access and for good reason. An AWS RDS instance is a hosted database server that’s separate from the compute (EC2) instance where the code is actually being served from. My local copy cannot access the RDS instance because it does not have a public IP address. The code is being hosted on an AWS EC2 compute instance with access to the database, which works just fine. |
# |
Sep 18th 2019, 11:10 |
conehead |
Yes you are. COMPLETELY different |
# |
Sep 18th 2019, 11:10 |
adam282 |
You’re trying to tell me that because my local copy of my code does not have access to my AWS RDS instance means that I have something wrong. |
# |
Sep 18th 2019, 11:09 |
adam282 |
I am? |
# |
Sep 18th 2019, 11:09 |
conehead |
Not going to comment on this anymore. As you are comparing two different things |
# |
Sep 18th 2019, 11:09 |
conehead |
... |
# |
Sep 18th 2019, 11:08 |
adam282 |
Okay, I apologize. You do not know how AWS works |
# |
Sep 18th 2019, 11:08 |
adam282 |
Not trying to be rude |
# |
Sep 18th 2019, 11:08 |
conehead |
... |
# |
Sep 18th 2019, 11:08 |
adam282 |
Then you do not understand how servers work man |
# |
Sep 18th 2019, 11:07 |
conehead |
Imho there is |
# |
Sep 18th 2019, 11:07 |
adam282 |
There is nothing wrong about not being able to test locally when I am using an AWS RDS instance that does not have public access enabled for security reasons |
# |
Sep 18th 2019, 11:06 |
conehead |
I'd say the same. But there is something wrong if you cannot test your code locally |
# |
Sep 18th 2019, 11:06 |
neon1024 |
..but that’s probably fear of the unknown, as I’ve not used AWS, other than doing the Beanstalk tutorial |
# |
Sep 18th 2019, 11:06 |
slackebot |
<conehead> |
# |
Sep 18th 2019, 11:05 |
neon1024 |
Developing directly on AWS is where I’d point my finger |
# |
Sep 18th 2019, 11:05 |
Escw0rm |
Do a session_destroy also after commenting it out |
# |
Sep 18th 2019, 11:05 |
adam282 |
It’s like something is bleeding over |
# |
Sep 18th 2019, 11:05 |
neon1024 |
Perhaps your webservers configuration is executing some other PHP, say a different `index.php` in the `root` directive |
# |
Sep 18th 2019, 11:05 |
adam282 |
Weird. Commenting that out still shows `Session Status: 2` |
# |
Sep 18th 2019, 11:03 |
adam282 |
The ONLY `session_start` that exists in my entire code base including `vendor` is ``` if (!session_start()) { throw new RuntimeException('Could not start the session'); } ``` |
# |
Sep 18th 2019, 11:03 |
adam282 |
Tried it already |
# |
Sep 18th 2019, 11:02 |
Escw0rm |
Maybe this is worth checking out: https://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies |
# |
Sep 18th 2019, 11:00 |
adam282 |
Makes absolutely no sense |
# |
Sep 18th 2019, 10:59 |
Escw0rm |
Yes |