Posts by Paulo Marcio • 602 points
7 posts
-
0
votes1
answer207
viewsA: Codeigniter: Session recreated after page reload
This is the second day with this problem, the only solution I found was to use the native php library, I copied this library: Native Session which makes use of it, moreover it is more appropriate…
-
1
votes1
answer207
viewsQ: Codeigniter: Session recreated after page reload
I have a system where a session is created for the user after their login, the problem is that each access I make to the site a new session is created and the recorded data is deleted, I set the…
-
1
votes0
answers23
viewsQ: cmake source_group has no effect
I’m trying to organize the project generated in visual studio, for this I’m using the function source_group to add the directories I want, only it doesn’t seem to take effect: set(CPP_FILES_REGEX…
-
6
votes1
answer180
viewsA: How to get a string from an hbitmap
You want the function to return the bitmap data instead of writing it to a file, right? I changed your code a little so that the function returns the data in memory: unsigned char* CaptureRegion(int…
-
0
votes1
answer110
viewsA: "Segmentation Fault" in a function that performs Quicksort
I edited the code you had made making changes to the parts I commented on and received no seg fault, the wrong points I found: The first parameter of the function was actually incorrect, you ask for…
-
8
votes1
answer438
viewsA: How to implement timeout in recv() in socket. h
You can use the select function, described here:select(2) - Linux manual and here: windows API select Function Note: fd = file Descriptor, I will call it descriptor The select function works on…
-
1
votes1
answer88
viewsQ: php session is broken when soon on two sites on the same apache server
I have two sites that perform user authentication and soon after create a session for the same, the two sites access the same database and therefore the user structure returned by the instruction:…